Re-write ustcomm parts of UST v2
[ust.git] / include / ust / ustd.h
index 5fec7f96084a9754d3ab0d8711c6957a45b71d2f..7ce063fefbb7f48bae11028fe6b79065ea9a6f92 100644 (file)
 #include <pthread.h>
 #include <dirent.h>
 #include <ust/kcompat/kcompat.h>
+#include <urcu/list.h>
 
 #define USTD_DEFAULT_TRACE_PATH "/tmp/usttrace"
 
-struct ustcomm_connection;
-struct ustcomm_ustd;
+struct ustcomm_sock;
 
 struct buffer_info {
        const char *name;
        pid_t pid;
-       struct ustcomm_connection *conn;
+       int app_sock;
+       /* The pipe file descriptor */
+       int pipe_fd;
 
        int shmid;
        int bufstruct_shmid;
@@ -73,7 +75,9 @@ struct libustd_instance {
        struct libustd_callbacks *callbacks;
        int quit_program;
        int is_init;
-       struct ustcomm_ustd *comm;
+       struct list_head connections;
+       int epoll_fd;
+       struct ustcomm_sock *listen_sock;
        char *sock_path;
        pthread_mutex_t mutex;
        int active_buffers;
This page took 0.024553 seconds and 4 git commands to generate.