summaryrefslogtreecommitdiff
path: root/src/connection.h
blob: f37c0c789e024cdf43d5bf3fe51faddb121b4f23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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 cmumble_context;

int
cmumble_connection_init(struct cmumble_context *ctx,
			const char *host, int port);

int
cmumble_connection_fini(struct cmumble_context *ctx);

#endif /* _CONNECTION_H_ */