From: Jérémie Galarneau Date: Tue, 26 Jan 2016 16:44:12 +0000 (-0500) Subject: Use lttng_domain_type enum instead of bare integer X-Git-Tag: v2.8.0-rc1~181 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4ce7709ba8d755049c81b5e112bce90129c0ea5a;p=lttng-tools.git Use lttng_domain_type enum instead of bare integer Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/context.c b/src/bin/lttng-sessiond/context.c index 866a039e7..be15cebd2 100644 --- a/src/bin/lttng-sessiond/context.c +++ b/src/bin/lttng-sessiond/context.c @@ -87,7 +87,8 @@ error: /* * Add UST context to channel. */ -static int add_uctx_to_channel(struct ltt_ust_session *usess, int domain, +static int add_uctx_to_channel(struct ltt_ust_session *usess, + enum lttng_domain_type domain, struct ltt_ust_channel *uchan, struct lttng_event_context *ctx) { int ret; @@ -239,8 +240,9 @@ error: /* * Add UST context to tracer. */ -int context_ust_add(struct ltt_ust_session *usess, int domain, - struct lttng_event_context *ctx, char *channel_name) +int context_ust_add(struct ltt_ust_session *usess, + enum lttng_domain_type domain, struct lttng_event_context *ctx, + char *channel_name) { int ret = LTTNG_OK; struct lttng_ht_iter iter; diff --git a/src/bin/lttng-sessiond/context.h b/src/bin/lttng-sessiond/context.h index e3047761b..01b35167e 100644 --- a/src/bin/lttng-sessiond/context.h +++ b/src/bin/lttng-sessiond/context.h @@ -26,7 +26,8 @@ int context_kernel_add(struct ltt_kernel_session *ksession, struct lttng_event_context *ctx, char *channel_name); -int context_ust_add(struct ltt_ust_session *usess, int domain, - struct lttng_event_context *ctx, char *channel_name); +int context_ust_add(struct ltt_ust_session *usess, + enum lttng_domain_type domain, struct lttng_event_context *ctx, + char *channel_name); #endif /* _LTT_CONTEXT_H */