X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libustcomm%2Fustcomm.h;h=05d90ebc0f02c2bd2634024d6824f398b098e77b;hb=18126790113844366f69043308aac2a8ae511e7d;hp=250883839d6187ca7976bb97ffb30cd95b4480ea;hpb=7e92827db5195a5b6afc110d0152eb2deef75638;p=ust.git diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index 2508838..05d90eb 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -29,6 +29,10 @@ struct ustcomm_connection { struct list_head list; int fd; + /* Data that has not yet been consumed: */ + char *recv_buf; + int recv_buf_size; + int recv_buf_alloc; }; /* ustcomm_server must be shallow-copyable */ @@ -64,6 +68,7 @@ extern int ustcomm_app_recv_message(struct ustcomm_app *app, char **msg, struct extern int ustcomm_init_app(pid_t pid, struct ustcomm_app *handle); extern void ustcomm_fini_app(struct ustcomm_app *handle); +extern void ustcomm_free_app(struct ustcomm_app *app); extern int ustcomm_init_ustd(struct ustcomm_ustd *handle, const char *sock_path);