aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mds-server.h')
-rw-r--r--src/mds-server.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mds-server.h b/src/mds-server.h
index 609d7cf..cf0d24a 100644
--- a/src/mds-server.h
+++ b/src/mds-server.h
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <pthread.h>
+#include <stdint.h>
/**
@@ -55,6 +56,11 @@ typedef struct client
*/
pthread_t thread;
+ /**
+ * The client's ID
+ */
+ uint64_t id;
+
} client_t;
@@ -67,6 +73,14 @@ typedef struct client
void* slave_loop(void* data);
/**
+ * Perform actions that should be taken when
+ * a message has been received from a client
+ *
+ * @param client The client has sent a message
+ */
+void message_received(client_t* client);
+
+/**
* Exec into the mdsinitrc script
*
* @param args The arguments to the child process