X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=libustcomm%2Fustcomm.h;h=91ac80d442c80c16719b4c175ac797ab1eb1fb69;hb=811e4b93ba6acb72226a9243ae9a525f444e7e80;hp=53ced5140c962d604fc50992350db50dda48ba6b;hpb=b02e31e53039229b50d2f54ee31d68709aba1412;p=ust.git diff --git a/libustcomm/ustcomm.h b/libustcomm/ustcomm.h index 53ced51..91ac80d 100644 --- a/libustcomm/ustcomm.h +++ b/libustcomm/ustcomm.h @@ -4,20 +4,32 @@ #include #include -struct ustcomm_app { - /* the "server" socket for serving the external requests */ +#include "kcompat.h" + +struct ustcomm_connection { + struct list_head list; int fd; - char *socketpath; }; -struct ustcomm_ustd { +struct ustcomm_server { /* the "server" socket for serving the external requests */ - int fd; + int listen_fd; char *socketpath; + + struct list_head connections; +}; + +struct ustcomm_ustd { + struct ustcomm_server server; +}; + +struct ustcomm_app { + struct ustcomm_server server; }; struct ustcomm_source { - struct sockaddr_un addr; + int fd; + void *priv; }; int send_message(pid_t pid, const char *msg, char **reply);