X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fsharedmemory_struct.h;h=e696948b34fbcef3a1647af64a0c06aa30b180bb;hb=f8f3917842398aca7dd21200b32b049b39190d2e;hp=a36382e8e425126e720643cc7ce3ab8d3e1591d0;hpb=0f96d841842a2f4adaaf9b271dc3f3e24fa5b009;p=umurmur.git diff --git a/src/sharedmemory_struct.h b/src/sharedmemory_struct.h index a36382e..e696948 100644 --- a/src/sharedmemory_struct.h +++ b/src/sharedmemory_struct.h @@ -1,28 +1,32 @@ -typedef struct -{ - - char username[121]; - char ipaddress[INET6_ADDRSTRLEN]; - char channel[121]; - char os[121], release[121], os_version[121]; - int tcp_port, udp_port; - bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus; - int availableBandwidth; - uint32_t online_secs, idle_secs; - bool_t isAdmin; - bool_t isSuppressed; - float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar; - uint32_t UDPPackets, TCPPackets; - -}shmclient_t; - -typedef struct -{ - - int shmtotal_size, shmclient_size; - int clientcount, server_max_clients; - unsigned int umurmurd_pid; - uint8_t alive; - shmclient_t client[]; - -}shm_t; +#include +#include +#include "types.h" + +typedef struct +{ + + char username[121]; + char ipaddress[INET6_ADDRSTRLEN]; + char channel[121]; + char os[121], release[121], os_version[121]; + int tcp_port, udp_port; + bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus; + int availableBandwidth; + uint32_t online_secs, idle_secs; + bool_t isAdmin; + bool_t isSuppressed; + float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar; + uint32_t UDPPackets, TCPPackets; + +} shmclient_t; + +typedef struct +{ + + int shmtotal_size, shmclient_size; + int clientcount, server_max_clients; + unsigned int umurmurd_pid; + uint8_t alive; + shmclient_t client[]; + +} shm_t;