X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=src%2Fclient.h;h=93487d9e0c59dc09645278502df9a9011fcee034;hb=ccdcbaf61751aa59a4afb6828c513bedf11dcd37;hp=82792e9924312f9edb17b0065d0dbdadc7b0a54a;hpb=46d18f60766f997d0ca37c5937f58c0c06477932;p=umurmur.git diff --git a/src/client.h b/src/client.h index 82792e9..93487d9 100644 --- a/src/client.h +++ b/src/client.h @@ -69,12 +69,12 @@ typedef struct { uint32_t rxcount, msgsize, drainleft, txcount, txsize; int sessionId; uint64_t key; - char *playerName; + char *username; bool_t authenticated, deaf, mute; char *os, *release; uint32_t version; int codec_count; - int32_t codecs[MAX_CODECS]; + struct dlist codecs; int availableBandwidth; etimer_t lastActivity; struct dlist node; @@ -86,6 +86,10 @@ typedef struct { struct dlist voicetargets; } client_t; +typedef struct { + int codec, count; + struct dlist node; +} codec_t; void Client_init(); int Client_getfds(struct pollfd *pollfds); @@ -102,5 +106,8 @@ int Client_read_udp(void); void Client_disconnect_all(); int Client_voiceMsg(client_t *client, uint8_t *data, int len); void recheckCodecVersions(); +void Client_codec_add(client_t *client, int codec); +void Client_codec_free(client_t *client); +codec_t *Client_codec_iterate(client_t *client, codec_t **codec_itr); #endif