X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=liblttsessiondcomm%2Fliblttsessiondcomm.h;h=83dcdc377ddbeaeebcc7eb35d8a54389185efc99;hp=56414063c6bacd70b79e50ae697774d61420129a;hb=87378cf56f08f23cd6715a923ba10d98343902d7;hpb=aaf975194bf54e911e7464b3723b2f247dbeb78b diff --git a/liblttsessiondcomm/liblttsessiondcomm.h b/liblttsessiondcomm/liblttsessiondcomm.h index 56414063c..83dcdc377 100644 --- a/liblttsessiondcomm/liblttsessiondcomm.h +++ b/liblttsessiondcomm/liblttsessiondcomm.h @@ -85,7 +85,7 @@ enum lttcomm_return_code { struct lttcomm_session_msg { /* Common data to almost all command */ enum lttcomm_command_type cmd_type; - char session_id[37]; + uuid_t session_id; char trace_name[NAME_MAX]; char session_name[NAME_MAX]; pid_t pid; @@ -125,7 +125,7 @@ struct lttcomm_session_msg { struct lttcomm_lttng_msg { enum lttcomm_command_type cmd_type; enum lttcomm_return_code ret_code; - char session_id[37]; + uuid_t session_id; pid_t pid; char trace_name[NAME_MAX]; unsigned int size_payload; @@ -135,6 +135,7 @@ extern int lttcomm_create_unix_sock(const char *pathname); extern int lttcomm_connect_unix_sock(const char *pathname); extern int lttcomm_accept_unix_sock(int sock); extern int lttcomm_listen_unix_sock(int sock); +extern int lttcomm_close_unix_sock(int sock); extern ssize_t lttcomm_recv_unix_sock(int sock, void *buf, size_t len); extern ssize_t lttcomm_send_unix_sock(int sock, void *buf, size_t len); extern const char *lttcomm_get_readable_code(enum lttcomm_return_code code);