Use lttng_domain_type enum instead of bare integer
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 26 Jan 2016 16:44:12 +0000 (11:44 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 12 Feb 2016 22:54:03 +0000 (17:54 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/context.c
src/bin/lttng-sessiond/context.h

index 866a039e74dc0c07a7171f1d22ca7994435d541e..be15cebd20babb346618f1d23b2fbe3eb21f9671 100644 (file)
@@ -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;
index e3047761b7d06251939183bcc3cb2c4b9fbae775..01b35167e484b11ebe3a104d65a1e24828fe24b5 100644 (file)
@@ -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 */
This page took 0.027066 seconds and 5 git commands to generate.