summaryrefslogtreecommitdiff
path: root/src/connection.h
diff options
context:
space:
mode:
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_ */