projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Declare client_t::channel as struct channel for better type safety.
[umurmur.git]
/
src
/
client.h
diff --git
a/src/client.h
b/src/client.h
index a710f5c8a63d93eafbec883b8807c7a14984ed5a..f5346bf8b68d858d220fcdb2bd539fd7db22327b 100644
(file)
--- a/
src/client.h
+++ b/
src/client.h
@@
-59,6
+59,8
@@
#define IS_AUTH(_a_) ((_a_)->authenticated)
#define IS_AUTH(_a_) ((_a_)->authenticated)
+struct channel;
+
typedef struct {
int tcpfd;
SSL_handle_t *ssl;
typedef struct {
int tcpfd;
SSL_handle_t *ssl;
@@
-83,7
+85,7
@@
typedef struct {
struct dlist node;
struct dlist txMsgQueue;
int txQueueCount;
struct dlist node;
struct dlist txMsgQueue;
int txQueueCount;
- void *channel; /* Ugly... */
+ struct channel *channel;
char *context;
struct dlist chan_node;
struct dlist voicetargets;
char *context;
struct dlist chan_node;
struct dlist voicetargets;
@@
-127,5
+129,8
@@
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);
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);
+bool_t Client_token_match(client_t *client, char const *str);
+void Client_token_free(client_t *client);
+void Client_token_add(client_t *client, char *token_string);
#endif
#endif