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 78d45fc0cf52e3e8542d854dc16beb3fde8e7df3..7e762e17071f0080e006a9bf2fcd696225caf4cf 100644
(file)
--- a/
src/client.h
+++ b/
src/client.h
@@
-1,5
+1,5
@@
-/* Copyright (C) 2009-201
1
, Martin Johansson <martin@fatbob.nu>
- Copyright (C) 2005-201
1
, Thorvald Natvig <thorvald@natvig.com>
+/* Copyright (C) 2009-201
2
, Martin Johansson <martin@fatbob.nu>
+ Copyright (C) 2005-201
2
, 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,
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