Initial sharedmemory API release
[umurmur.git] / src / sharedmemory_struct.h
diff --git a/src/sharedmemory_struct.h b/src/sharedmemory_struct.h
new file mode 100644 (file)
index 0000000..88eb0c5
--- /dev/null
@@ -0,0 +1,21 @@
+typedef struct\r
+{\r
+  char username[121];\r
+  char ipaddress[46];\r
+  int tcp_port, udp_port;\r
+  char channel[121];\r
+  bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus;\r
+  etimer_t lastActivity, connectTime, idleTime;\r
+  float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;\r
+  uint32_t UDPPackets, TCPPackets;\r
+\r
+}shmclient_t;\r
+\r
+typedef struct\r
+{\r
+\r
+  int clientcount, server_max_clients;\r
+  unsigned int umurmurd_pid; //Use this to make sure umurmurd is still running so I can allow more than one connection.\r
+  shmclient_t client[];    //MJP BUG: Use max usersetting from conf file\r
+  \r
+}shm_t;
\ No newline at end of file