X-Git-Url: http://git.lttng.org/?p=ust.git;a=blobdiff_plain;f=libustcomm%2Fustcomm.h;fp=libustcomm%2Fustcomm.h;h=4706b72fbb930eaf4d22e5d1ac11702fe627171a;hp=a91c111e8d7d02d1a1e69028f1e31b7f18744324;hb=0f79e1ef1d4f31a91476f5a84e367f2c49ce4723;hpb=317117239797a3609c1ec817a59bb3e70c9c1cba diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index a91c111..4706b72 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -162,6 +162,13 @@ 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); + +/* Get the st_m_time from proc*/ +extern time_t ustcomm_pid_st_mtime(pid_t pid); + +/* Check that a socket is live */ +extern int ustcomm_is_socket_live(char *sock_name, pid_t *read_pid); + extern int ustcomm_connect_app(pid_t pid, int *app_fd); extern int ustcomm_connect_path(const char *path, int *connection_fd);