Assign values to enum lttcomm_sessiond_command
authorDavid Goulet <dgoulet@efficios.com>
Tue, 27 Nov 2012 18:52:10 +0000 (13:52 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 27 Nov 2012 18:52:10 +0000 (13:52 -0500)
These command's code are part of a communication protocol so numbering
them is important.

Note that the RELAYD command should be in a seperate enum but until we
wrote the specs of the protocol with the commands value, this is fine
for now.

Fixes #397

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/sessiond-comm/sessiond-comm.h

index 6f75a11132bddb52462d74dc87a6e2d3cb41cbd8..011a1290a99097c6cb36c52c84209e57e25ac265 100644 (file)
 
 enum lttcomm_sessiond_command {
        /* Tracer command */
-       LTTNG_ADD_CONTEXT,
-       LTTNG_CALIBRATE,
-       LTTNG_DISABLE_CHANNEL,
-       LTTNG_DISABLE_EVENT,
-       LTTNG_DISABLE_ALL_EVENT,
-       LTTNG_ENABLE_CHANNEL,
-       LTTNG_ENABLE_EVENT,
-       LTTNG_ENABLE_ALL_EVENT,
+       LTTNG_ADD_CONTEXT                                       = 1,
+       LTTNG_CALIBRATE                                         = 2,
+       LTTNG_DISABLE_CHANNEL                           = 3,
+       LTTNG_DISABLE_EVENT                                     = 4,
+       LTTNG_DISABLE_ALL_EVENT                         = 5,
+       LTTNG_ENABLE_CHANNEL                            = 6,
+       LTTNG_ENABLE_EVENT                                      = 7,
+       LTTNG_ENABLE_ALL_EVENT                          = 8,
        /* Session daemon command */
-       LTTNG_CREATE_SESSION,
-       LTTNG_DESTROY_SESSION,
-       LTTNG_LIST_CHANNELS,
-       LTTNG_LIST_DOMAINS,
-       LTTNG_LIST_EVENTS,
-       LTTNG_LIST_SESSIONS,
-       LTTNG_LIST_TRACEPOINTS,
-       LTTNG_REGISTER_CONSUMER,
-       LTTNG_START_TRACE,
-       LTTNG_STOP_TRACE,
-       LTTNG_LIST_TRACEPOINT_FIELDS,
+       LTTNG_CREATE_SESSION                            = 9,
+       LTTNG_DESTROY_SESSION                           = 10,
+       LTTNG_LIST_CHANNELS                 = 11,
+       LTTNG_LIST_DOMAINS                  = 12,
+       LTTNG_LIST_EVENTS                   = 13,
+       LTTNG_LIST_SESSIONS                 = 14,
+       LTTNG_LIST_TRACEPOINTS              = 15,
+       LTTNG_REGISTER_CONSUMER             = 16,
+       LTTNG_START_TRACE                   = 17,
+       LTTNG_STOP_TRACE                    = 18,
+       LTTNG_LIST_TRACEPOINT_FIELDS        = 19,
 
        /* Consumer */
-       LTTNG_DISABLE_CONSUMER,
-       LTTNG_ENABLE_CONSUMER,
-       LTTNG_SET_CONSUMER_URI,
+       LTTNG_DISABLE_CONSUMER              = 20,
+       LTTNG_ENABLE_CONSUMER               = 21,
+       LTTNG_SET_CONSUMER_URI              = 22,
        /* Relay daemon */
-       RELAYD_ADD_STREAM,
-       RELAYD_CREATE_SESSION,
-       RELAYD_START_DATA,
-       RELAYD_UPDATE_SYNC_INFO,
-       RELAYD_VERSION,
-       RELAYD_SEND_METADATA,
-       RELAYD_CLOSE_STREAM,
-       RELAYD_DATA_PENDING,
-       RELAYD_QUIESCENT_CONTROL,
-       LTTNG_ENABLE_EVENT_WITH_FILTER,
-       LTTNG_HEALTH_CHECK,
-       LTTNG_DATA_PENDING,
+       RELAYD_ADD_STREAM                   = 23,
+       RELAYD_CREATE_SESSION               = 24,
+       RELAYD_START_DATA                   = 25,
+       RELAYD_UPDATE_SYNC_INFO             = 26,
+       RELAYD_VERSION                      = 27,
+       RELAYD_SEND_METADATA                = 28,
+       RELAYD_CLOSE_STREAM                 = 29,
+       RELAYD_DATA_PENDING                 = 30,
+       RELAYD_QUIESCENT_CONTROL            = 31,
+       LTTNG_ENABLE_EVENT_WITH_FILTER      = 32,
+       LTTNG_HEALTH_CHECK                  = 33,
+       LTTNG_DATA_PENDING                  = 34,
 };
 
 /*
This page took 0.036428 seconds and 4 git commands to generate.