about summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libumumble.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/libumumble.h b/include/libumumble.h
new file mode 100644
index 0000000..2605688
--- /dev/null
+++ b/include/libumumble.h
@@ -0,0 +1,34 @@
+#ifndef LIBUMUMBLE_H
+#define LIBUMUMBLE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
+#include <uv.h>
+
+typedef struct mumble_ctx {
+	uv_loop_t uv_loop;
+} mumble_ctx_t;
+
+/* Initializes a mumble context object.
+ * This function will allocate initial memory needed for storing e.g. the channel layout.
+ * Make sure to call mumble_free_ctx() when you're done!
+ *
+ * \param ctx the context object to initialize.
+ * \return int indicating success
+ * \retval 1 error
+ */
+int mumble_init_ctx(mumble_ctx_t ctx);
+
+/* Free a mumble context.
+ *
+ * \param ctx the context object to free.
+ */
+void mumble_free_ctx(mumble_ctx_t ctx);
+
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
+#endif /* LIBUMUMBLE_H */
uthor Kartik Agaram <vc@akkartik.com> 2018-12-03 23:26:56 -0800 committer Kartik Agaram <vc@akkartik.com> 2018-12-03 23:26:56 -0800 4830' href='/akkartik/mu/commit/subx/opcodes?h=hlt&id=5f3b3e7aea4174f13da9b430538564c68257b647'>5f3b3e7a ^
417a05ee ^
1639687b ^
417a05ee ^

5f3b3e7a ^
417a05ee ^
f15fcfe8 ^
417a05ee ^

a78deb23 ^
417a05ee ^
f15fcfe8 ^





417a05ee ^
be609279 ^
417a05ee ^


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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102