Add major/minor version in libust registration
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Aug 2011 01:12:30 +0000 (21:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 22 Aug 2011 01:12:30 +0000 (21:12 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng-sessiond-comm.h
libust/lttng-ust-comm.c

index 67c114e681a4704ac16ca1c703245e0285a0b571..71a1dd642185ffb678c027003d8d0a37f9b4864e 100644 (file)
@@ -40,6 +40,9 @@
 /* Queue size of listen(2) */
 #define MAX_LISTEN 10
 
+#define LTTNG_UST_COMM_VERSION_MAJOR           0
+#define LTTNG_UST_COMM_VERSION_MINOR           1
+
 /* Get the error code index from 0 since
  * LTTCOMM_OK start at 1000
  */
index 5aaf29e972559f485b0bee0484ad4fa5c76148a2..e73d324d4815d1439cc756defe762a3897d2f270 100644 (file)
@@ -54,10 +54,14 @@ int register_app_to_sessiond(int socket)
 {
        ssize_t ret;
        struct {
+               uint32_t major;
+               uint32_t minor;
                pid_t pid;
                uid_t uid;
        } reg_msg;
 
+       reg_msg.major = LTTNG_UST_COMM_VERSION_MAJOR;
+       reg_msg.minor = LTTNG_UST_COMM_VERSION_MINOR;
        reg_msg.pid = getpid();
        reg_msg.uid = getuid();
 
This page took 0.028074 seconds and 4 git commands to generate.