X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libustcomm%2Fustcomm.h;h=e661a5518bd577631255588a1d461eadf3d9e46e;hb=688760ef257bee85e3841e0d27ecf4e2f921ef00;hp=91ac80d442c80c16719b4c175ac797ab1eb1fb69;hpb=811e4b93ba6acb72226a9243ae9a525f444e7e80;p=ust.git diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index 91ac80d..e661a55 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -32,10 +32,12 @@ struct ustcomm_source { void *priv; }; +char *strdup_malloc(const char *s); + int send_message(pid_t pid, const char *msg, char **reply); -int ustcomm_ustd_recv_message(struct ustcomm_ustd *ustd, char **msg, struct ustcomm_source *src); -int ustcomm_app_recv_message(struct ustcomm_app *app, char **msg, struct ustcomm_source *src); +int ustcomm_ustd_recv_message(struct ustcomm_ustd *ustd, char **msg, struct ustcomm_source *src, int timeout); +int ustcomm_app_recv_message(struct ustcomm_app *app, char **msg, struct ustcomm_source *src, int timeout); int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle);