e696948b34fbcef3a1647af64a0c06aa30b180bb
[umurmur.git] / src / sharedmemory_struct.h
1 #include <arpa/inet.h>
2 #include <stdint.h>
3 #include "types.h"
4
5 typedef struct
6 {
7
8   char username[121];
9   char ipaddress[INET6_ADDRSTRLEN];
10   char channel[121];
11   char os[121], release[121], os_version[121];
12   int tcp_port, udp_port;
13   bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording, bOpus;
14   int availableBandwidth;
15   uint32_t online_secs, idle_secs;
16   bool_t isAdmin;
17   bool_t isSuppressed;
18   float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;
19   uint32_t UDPPackets, TCPPackets;
20
21 } shmclient_t;
22
23 typedef struct
24 {
25
26   int shmtotal_size, shmclient_size;
27   int clientcount, server_max_clients;
28   unsigned int umurmurd_pid;
29   uint8_t alive;
30   shmclient_t client[];
31
32 } shm_t;