projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add function for sending textmessages.
[umurmur.git]
/
src
/
client.h
diff --git
a/src/client.h
b/src/client.h
index 853a076d6252189dfd859e621c3433f97ce091ed..7e762e17071f0080e006a9bf2fcd696225caf4cf 100644
(file)
--- a/
src/client.h
+++ b/
src/client.h
@@
-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;
@@
-121,9
+121,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