Skip to content
Snippets Groups Projects
Commit f0d6000a authored by Luiz Capitulino's avatar Luiz Capitulino Committed by Anthony Liguori
Browse files

monitor: Convert do_getfd() to QObject


Note that errors are not being converted yet.

Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent e1c923a6
No related branches found
No related tags found
No related merge requests found
......@@ -1848,7 +1848,7 @@ static void do_inject_mce(Monitor *mon, const QDict *qdict)
}
#endif
static void do_getfd(Monitor *mon, const QDict *qdict)
static void do_getfd(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
const char *fdname = qdict_get_str(qdict, "fdname");
mon_fd_t *monfd;
......
......@@ -1013,7 +1013,8 @@ ETEXI
.args_type = "fdname:s",
.params = "getfd name",
.help = "receive a file descriptor via SCM rights and assign it a name",
.mhandler.cmd = do_getfd,
.user_print = monitor_user_noop,
.mhandler.cmd_new = do_getfd,
},
STEXI
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment