aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxl/libxl_internal.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2012-10-18 09:35:09 +0100
committerIan Campbell <ian.campbell@citrix.com>2012-10-18 09:35:09 +0100
commitb3b123b5a943cd2e289c6cb429836f6b16648771 (patch)
tree292d5282b3a330887a69287562cfe0824c806e23 /tools/libxl/libxl_internal.h
parent191e485a1929a02706ec3301f3185b2b89c3253f (diff)
downloadxen-b3b123b5a943cd2e289c6cb429836f6b16648771.tar.gz
xen-b3b123b5a943cd2e289c6cb429836f6b16648771.tar.bz2
xen-b3b123b5a943cd2e289c6cb429836f6b16648771.zip
libxl: propagate user supplied values into event for_user field.
This was ommited in the majority of cases. Add as a parameter to libxl__event_new and the NEW_EVENT wrapper to help prevent it being forgotten in the future. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_internal.h')
-rw-r--r--tools/libxl/libxl_internal.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h
index 1a221ac544..8130d13388 100644
--- a/tools/libxl/libxl_internal.h
+++ b/tools/libxl/libxl_internal.h
@@ -783,13 +783,14 @@ _hidden void libxl__event_occurred(libxl__egc*, libxl_event *event);
* event should be suitable for passing to libxl_event_free. */
_hidden libxl_event *libxl__event_new(libxl__egc*, libxl_event_type,
- uint32_t domid);
+ uint32_t domid,
+ libxl_ev_user for_user);
/* Convenience function.
* Allocates a new libxl_event, fills in domid and type.
* Cannot fail. */
-#define NEW_EVENT(egc, type, domid) \
- libxl__event_new((egc), LIBXL_EVENT_TYPE_##type, (domid))
+#define NEW_EVENT(egc, type, domid, user) \
+ libxl__event_new((egc), LIBXL_EVENT_TYPE_##type, (domid), (user))
/* Convenience macro. */
/*