X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libustcomm%2Fustcomm.h;fp=libustcomm%2Fustcomm.h;h=db3811961b2b8481aeed2704cb1333fd95dab0fd;hp=0ec04fc6e5edfd83458e021ecf835c0b5f429eaa;hb=dbd75de7b2c05c98d6171bc531a1ecb23fb7e80d;hpb=9508e4d5ffbb4ba602d15de0fa7843a004b02f02 diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index 0ec04fc..db38119 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -25,6 +25,7 @@ #include #define SOCK_DIR "/tmp/ust-app-socks" +#define USER_SOCK_DIR "/tmp/ust-socks-" struct ustcomm_sock { struct cds_list_head list; @@ -156,6 +157,9 @@ extern int ustcomm_req(int sock, char *res_data); extern int ustcomm_request_consumer(pid_t pid, const char *channel); + +/* Returns the current users socket directory, must be freed */ +extern char *ustcomm_user_sock_dir(void); extern int ustcomm_connect_app(pid_t pid, int *app_fd); extern int ustcomm_connect_path(const char *path, int *connection_fd);