Revision 97536cff

b/monitor.c
98 98
    const char *params;
99 99
    const char *help;
100 100
    void (*user_print)(Monitor *mon, const QObject *data);
101
    int (*cmd_new_ret)(Monitor *mon, const QDict *params, QObject **ret_data);
101 102
    union {
102 103
        void (*info)(Monitor *mon);
103 104
        void (*info_new)(Monitor *mon, QObject **ret_data);
......
3801 3802
{
3802 3803
    QObject *data = NULL;
3803 3804

  
3804
    cmd->mhandler.cmd_new(mon, params, &data);
3805
    if (cmd->cmd_new_ret) {
3806
        cmd->cmd_new_ret(mon, params, &data);
3807
    } else {
3808
        cmd->mhandler.cmd_new(mon, params, &data);
3809
    }
3805 3810

  
3806 3811
    if (is_async_return(data)) {
3807 3812
        /*

Also available in: Unified diff