Last bit of code clean up, and bug fixes. Release?
[umurmur.git] / src / sharedmemory_struct.h
index 88eb0c5e54d633e8c2dd785655398f4215761807..c1f443008ba7a709e063b00f01b590894ed38023 100644 (file)
@@ -1,11 +1,16 @@
 typedef struct\r
 {\r
+\r
   char username[121];\r
   char ipaddress[46];\r
-  int tcp_port, udp_port;\r
   char channel[121];\r
+  char os[121], release[121], os_version[121];\r
+  int tcp_port, udp_port;\r
   bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus;\r
-  etimer_t lastActivity, connectTime, idleTime;\r
+  int availableBandwidth;\r
+  uint32_t online_secs, idle_secs;\r
+  bool_t isAdmin;\r
+  bool_t isSuppressed;\r
   float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;\r
   uint32_t UDPPackets, TCPPackets;\r
 \r
@@ -14,8 +19,10 @@ typedef struct
 typedef struct\r
 {\r
 \r
+  int shmtotal_size, shmclient_size;\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
+  unsigned int umurmurd_pid;\r
+  uint8_t alive;\r
+  shmclient_t client[];\r
+\r
+}shm_t;\r