summaryrefslogtreecommitdiff
path: root/src/connection.h
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-23 10:29:16 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-23 10:43:41 +0200
commite50020020c9770e180735361182e9968249cbfa2 (patch)
tree635ba42f4e9f58160868f89cbc5f9be2e9bb909a /src/connection.h
parent7deb194171233af0fd3689cc1cd2f9b772d883d0 (diff)
downloadcmumble-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.h30
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_ */