Revision f3c157c4 monitor.c
b/monitor.c | ||
---|---|---|
3207 | 3207 |
qobject_decref(data); |
3208 | 3208 |
} |
3209 | 3209 |
|
3210 |
static void monitor_handle_command(Monitor *mon, const char *cmdline)
|
|
3210 |
static void handle_user_command(Monitor *mon, const char *cmdline)
|
|
3211 | 3211 |
{ |
3212 | 3212 |
QDict *qdict; |
3213 | 3213 |
const mon_cmd_t *cmd; |
... | ... | |
3471 | 3471 |
if (size == 0 || buf[size - 1] != 0) |
3472 | 3472 |
monitor_printf(cur_mon, "corrupted command\n"); |
3473 | 3473 |
else |
3474 |
monitor_handle_command(cur_mon, (char *)buf);
|
|
3474 |
handle_user_command(cur_mon, (char *)buf);
|
|
3475 | 3475 |
} |
3476 | 3476 |
|
3477 | 3477 |
cur_mon = old_mon; |
... | ... | |
3480 | 3480 |
static void monitor_command_cb(Monitor *mon, const char *cmdline, void *opaque) |
3481 | 3481 |
{ |
3482 | 3482 |
monitor_suspend(mon); |
3483 |
monitor_handle_command(mon, cmdline);
|
|
3483 |
handle_user_command(mon, cmdline);
|
|
3484 | 3484 |
monitor_resume(mon); |
3485 | 3485 |
} |
3486 | 3486 |
|
Also available in: Unified diff