Revision 8ac470c1 monitor.c
b/monitor.c | ||
---|---|---|
112 | 112 |
int (*cmd_async)(Monitor *mon, const QDict *params, |
113 | 113 |
MonitorCompletion *cb, void *opaque); |
114 | 114 |
} mhandler; |
115 |
int async;
|
|
115 |
int flags;
|
|
116 | 116 |
} mon_cmd_t; |
117 | 117 |
|
118 | 118 |
/* file descriptors passed via SCM_RIGHTS */ |
... | ... | |
327 | 327 |
|
328 | 328 |
static inline bool monitor_handler_is_async(const mon_cmd_t *cmd) |
329 | 329 |
{ |
330 |
return cmd->async != 0;
|
|
330 |
return cmd->flags & MONITOR_CMD_ASYNC;
|
|
331 | 331 |
} |
332 | 332 |
|
333 | 333 |
static inline int monitor_has_error(const Monitor *mon) |
... | ... | |
2536 | 2536 |
.help = "show balloon information", |
2537 | 2537 |
.user_print = monitor_print_balloon, |
2538 | 2538 |
.mhandler.info_async = do_info_balloon, |
2539 |
.async = 1,
|
|
2539 |
.flags = MONITOR_CMD_ASYNC,
|
|
2540 | 2540 |
}, |
2541 | 2541 |
{ |
2542 | 2542 |
.name = "qtree", |
Also available in: Unified diff