Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
/* 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
*/
{
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();