X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libustcomm%2Fustcomm.h;h=87ed322be43bec8f4e0ccdd3d28c8c430c820b85;hb=0e4b45ace8b034dc4352a30d89b74f5e59e2e27d;hp=721d1ab08ce66cf7ebcdd5ef6021f4e5fc9f0f07;hpb=c7dc133cff3db7336bb97fcb57c2dec559942518;p=ust.git diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index 721d1ab..87ed322 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -22,6 +22,7 @@ #include #include "kcompat.h" +#include "multipoll.h" #define SOCK_DIR "/tmp/ust-app-socks" #define UST_SIGNAL SIGIO @@ -58,6 +59,11 @@ struct ustcomm_source { void *priv; }; +struct ustcomm_multipoll_conn_info { + struct ustcomm_connection *conn; + int (*cb)(char *msg, struct ustcomm_source *src); +}; + extern char *strdup_malloc(const char *s); //int send_message_pid(pid_t pid, const char *msg, char **reply); @@ -79,6 +85,7 @@ extern int ustcomm_send_request(struct ustcomm_connection *conn, const char *req extern int ustcomm_send_reply(struct ustcomm_server *server, char *msg, struct ustcomm_source *src); extern int ustcomm_disconnect(struct ustcomm_connection *conn); extern int ustcomm_close_all_connections(struct ustcomm_server *server); +extern void ustcomm_mp_add_app_clients(struct mpentries *ent, struct ustcomm_app *app, int (*cb)(struct ustcomm_connection *conn, char *msg)); extern int nth_token_is(const char *str, const char *token, int tok_no);