X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Fust-comm.h;h=0b80a0ce2d522c9381a716ee60b4253d67aee41e;hb=bf5ff35ed0a3a7f60e92d654a5b97e73b94da852;hp=4c360dcc81316d10df40dc5eb8c5e6993344f7f6;hpb=cbef69018acdeb52d27529e80126b43f3733e233;p=lttng-ust.git diff --git a/include/ust-comm.h b/include/ust-comm.h index 4c360dcc..0b80a0ce 100644 --- a/include/ust-comm.h +++ b/include/ust-comm.h @@ -39,12 +39,13 @@ #define LTTNG_UST_DEFAULT_CONSTRUCTOR_TIMEOUT_MS 3000 #define LTTNG_RUNDIR "/var/run/lttng" +#define LTTNG_HOME_RUNDIR "%s/.lttng" /* Default unix socket path */ #define DEFAULT_GLOBAL_CLIENT_UNIX_SOCK LTTNG_RUNDIR "/client-lttng-sessiond" #define DEFAULT_GLOBAL_APPS_UNIX_SOCK LTTNG_RUNDIR "/apps-lttng-sessiond" -#define DEFAULT_HOME_APPS_UNIX_SOCK "%s/.apps-lttng-sessiond" -#define DEFAULT_HOME_CLIENT_UNIX_SOCK "%s/.client-lttng-sessiond" +#define DEFAULT_HOME_APPS_UNIX_SOCK LTTNG_HOME_RUNDIR "/apps-lttng-sessiond" +#define DEFAULT_HOME_CLIENT_UNIX_SOCK LTTNG_HOME_RUNDIR "/client-lttng-sessiond" #define DEFAULT_GLOBAL_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait" #define DEFAULT_HOME_APPS_WAIT_SHM_PATH "/lttng-ust-apps-wait-%u" @@ -173,4 +174,8 @@ extern int ustcomm_send_app_cmd(int sock, struct ustcomm_ust_reply *lur); int ustcomm_recv_fd(int sock); +/* Send/recv string over unix socket */ +extern ssize_t ustcomm_send_string(int sock, char *str, size_t len); +extern char *ustcomm_recv_string(int sock); + #endif /* _LTTNG_UST_COMM_H */