summaryrefslogtreecommitdiff
path: root/monitor.h
diff options
context:
space:
mode:
authorCorey Bryant <coreyb@linux.vnet.ibm.com>2012-10-18 15:19:32 -0400
committerKevin Wolf <kwolf@redhat.com>2012-10-24 10:26:19 +0200
commite446f70d54b4920e8ca5af509271b69eab86e37b (patch)
treef7465db7a97b0b88e859f4be6d9a9291a8d849cd /monitor.h
parent9ac54af0c35d3f931653efae5698ef0f465eac7c (diff)
downloadqemu-e446f70d54b4920e8ca5af509271b69eab86e37b.tar.gz
monitor: Enable adding an inherited fd to an fd set
qmp_add_fd() gets an fd that was received over a socket with SCM_RIGHTS and adds it to an fd set. This patch adds support that will enable adding an fd that was inherited on the command line to an fd set. Note: All of the code added to monitor_fdset_add_fd(), with the exception of the error path for non-valid fdset-id, is code motion from qmp_add_fd(). Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'monitor.h')
-rw-r--r--monitor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/monitor.h b/monitor.h
index b6e7d95a30..d4c017e496 100644
--- a/monitor.h
+++ b/monitor.h
@@ -90,6 +90,9 @@ int qmp_qom_set(Monitor *mon, const QDict *qdict, QObject **ret);
int qmp_qom_get(Monitor *mon, const QDict *qdict, QObject **ret);
+AddfdInfo *monitor_fdset_add_fd(int fd, bool has_fdset_id, int64_t fdset_id,
+ bool has_opaque, const char *opaque,
+ Error **errp);
int monitor_fdset_get_fd(int64_t fdset_id, int flags);
int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd);
int monitor_fdset_dup_fd_remove(int dup_fd);