From e50020020c9770e180735361182e9968249cbfa2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 23 Sep 2011 10:29:16 +0200 Subject: Move connection related stuff into connection.c --- src/connection.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/connection.h (limited to 'src/connection.h') 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 + +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_ */ -- cgit