ust: add info exchange between app and ustd
[ust.git] / libustcomm / ustcomm.h
index 53ced5140c962d604fc50992350db50dda48ba6b..91ac80d442c80c16719b4c175ac797ab1eb1fb69 100644 (file)
@@ -4,20 +4,32 @@
 #include <sys/types.h>
 #include <sys/un.h>
 
-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);
This page took 0.036966 seconds and 4 git commands to generate.