Revision 0e19a627
b/monitor.c | ||
---|---|---|
340 | 340 |
return cmd->flags & MONITOR_CMD_ASYNC; |
341 | 341 |
} |
342 | 342 |
|
343 |
static inline bool monitor_cmd_user_only(const mon_cmd_t *cmd) |
|
344 |
{ |
|
345 |
return (cmd->flags & MONITOR_CMD_USER_ONLY); |
|
346 |
} |
|
347 |
|
|
348 | 343 |
static inline int monitor_has_error(const Monitor *mon) |
349 | 344 |
{ |
350 | 345 |
return mon->error != NULL; |
b/monitor.h | ||
---|---|---|
18 | 18 |
|
19 | 19 |
/* flags for monitor commands */ |
20 | 20 |
#define MONITOR_CMD_ASYNC 0x0001 |
21 |
#define MONITOR_CMD_USER_ONLY 0x0002 |
|
22 | 21 |
|
23 | 22 |
/* QMP events */ |
24 | 23 |
typedef enum MonitorEvent { |
Also available in: Unified diff