projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add client indication of silent channels
[umurmur.git]
/
src
/
client.h
diff --git
a/src/client.h
b/src/client.h
index 853a076d6252189dfd859e621c3433f97ce091ed..d70fcf05886ae85d1933e6335fa649970cbbaf2a 100644
(file)
--- a/
src/client.h
+++ b/
src/client.h
@@
-1,5
+1,5
@@
-/* Copyright (C) 2009-201
2
, Martin Johansson <martin@fatbob.nu>
- Copyright (C) 2005-201
2
, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-201
3
, Martin Johansson <martin@fatbob.nu>
+ Copyright (C) 2005-201
3
, Thorvald Natvig <thorvald@natvig.com>
All rights reserved.
All rights reserved.
@@
-51,7
+51,7
@@
#define BUFSIZE 8192
#define UDP_BUFSIZE 512
#define BUFSIZE 8192
#define UDP_BUFSIZE 512
-#define INACTI
C
ITY_TIMEOUT 15 /* Seconds */
+#define INACTI
V
ITY_TIMEOUT 15 /* Seconds */
#define MAX_CODECS 10
#define MAX_TOKENSIZE 64
#define MAX_TOKENS 32
#define MAX_CODECS 10
#define MAX_TOKENSIZE 64
#define MAX_TOKENS 32
@@
-73,7
+73,7
@@
typedef struct {
int sessionId;
uint64_t key;
char *username;
int sessionId;
uint64_t key;
char *username;
- bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording;
+ bool_t bUDP, authenticated, deaf, mute, self_deaf, self_mute, recording
, bOpus
;
char *os, *release, *os_version;
uint32_t version;
int codec_count;
char *os, *release, *os_version;
uint32_t version;
int codec_count;
@@
-91,6
+91,7
@@
typedef struct {
int tokencount;
uint8_t hash[20];
bool_t isAdmin;
int tokencount;
uint8_t hash[20];
bool_t isAdmin;
+ bool_t isSuppressed;
float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;
uint32_t UDPPackets, TCPPackets;
} client_t;
float UDPPingAvg, UDPPingVar, TCPPingAvg, TCPPingVar;
uint32_t UDPPackets, TCPPackets;
} client_t;
@@
-121,9
+122,10
@@
int Client_send_message_except(client_t *client, message_t *msg);
int Client_read_udp(void);
void Client_disconnect_all();
int Client_voiceMsg(client_t *client, uint8_t *data, int len);
int Client_read_udp(void);
void Client_disconnect_all();
int Client_voiceMsg(client_t *client, uint8_t *data, int len);
-void recheckCodecVersions();
+void recheckCodecVersions(
client_t *connectingClient
);
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);
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);
+void Client_textmessage(client_t *client, char *text);
#endif
#endif