diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-23 10:29:16 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-23 10:43:41 +0200 |
commit | e50020020c9770e180735361182e9968249cbfa2 (patch) | |
tree | 635ba42f4e9f58160868f89cbc5f9be2e9bb909a /src/connection.h | |
parent | 7deb194171233af0fd3689cc1cd2f9b772d883d0 (diff) | |
download | cmumble-e50020020c9770e180735361182e9968249cbfa2.tar.gz cmumble-e50020020c9770e180735361182e9968249cbfa2.tar.bz2 cmumble-e50020020c9770e180735361182e9968249cbfa2.zip |
Move connection related stuff into connection.c
Diffstat (limited to 'src/connection.h')
-rw-r--r-- | src/connection.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/connection.h b/src/connection.h new file mode 100644 index 0000000..e38150d --- /dev/null +++ b/src/connection.h @@ -0,0 +1,30 @@ +#ifndef _CONNECTION_H_ +#define _CONNECTION_H_ + +#include <glib.h> + +struct cmumble_connection { + GSocketClient *sock_client; + GSocketConnection *conn; + GSocket *sock; + + GPollableInputStream *input; + GOutputStream *output; + + GSource *source; + + struct mumble_callbacks *callbacks; +}; + +struct context; +struct mumble_callbacks; + +int +cmumble_connection_init(struct context *ctx, + const char *host, int port, + struct mumble_callbacks *cbs); + +int +cmumble_connection_fini(struct context *ctx); + +#endif /* _CONNECTION_H_ */ |