about summary refs log tree commit diff stats
path: root/include
diff options
context:
space:
mode:
authorlatex <latex@disroot.org>2023-01-25 01:10:44 +0100
committerlatex <latex@disroot.org>2023-01-25 01:10:44 +0100
commit170025ac5d96f1c46483a88ca4372254a5da6161 (patch)
treee791e4e1e9f3d82d9da0c7e1c0b62e50359e6658 /include
parente8d5b17975a687fd115167c1df1544c949088f42 (diff)
downloadlibumumble-170025ac5d96f1c46483a88ca4372254a5da6161.tar.gz
add context initialization and uv loop
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 */
artik.com> 2016-10-20 00:24:16 -0700 3523 - http client now working' href='/akkartik/mu/commit/091socket.cc?h=main&id=f24eeaab13d12b87bb219cb42861c5fe7d091053'>f24eeaab ^
23d3a022 ^
f24eeaab ^
































a7c59e3e ^
68578a78 ^
a7c59e3e ^
68578a78 ^
a7c59e3e ^
68578a78 ^
2b250717 ^
68578a78 ^


a7c59e3e ^
68578a78 ^


2b250717 ^
68578a78 ^


a7c59e3e ^
68578a78 ^




a7c59e3e ^
68578a78 ^
c87a0b7d ^
2821a0a3 ^
51ae6e61 ^
2821a0a3 ^

68578a78 ^

51ae6e61 ^
51ae6e61 ^
68578a78 ^

54e7f47c ^
aa229fbe ^
54e7f47c ^

e5360e06 ^

8140ff13 ^
e5360e06 ^
54e7f47c ^


aac885fd ^
aa229fbe ^
f03d2f15 ^
347510c0 ^


54e7f47c ^

aa229fbe ^
54e7f47c ^
54e7f47c ^

68578a78 ^
68578a78 ^






2b250717 ^
68578a78 ^






2b250717 ^
68578a78 ^









51ae6e61 ^
d3d30176 ^



f5863594 ^
d3d30176 ^





68578a78 ^

19f47cc0 ^
f5863594 ^
d3d30176 ^


f03d2f15 ^
d3d30176 ^
19f47cc0 ^
68578a78 ^






b07576d2 ^
2b250717 ^
68578a78 ^


b07576d2 ^
68578a78 ^

28191d31 ^

2b250717 ^
51ae6e61 ^

b07576d2 ^

c83f3bca ^

28191d31 ^









c83f3bca ^

68578a78 ^



28191d31 ^
51ae6e61 ^

f24eeaab ^





b07576d2 ^




f24eeaab ^
f24eeaab ^



5e19c6ce ^

28191d31 ^





5e19c6ce ^
28191d31 ^
f24eeaab ^
28191d31 ^



f24eeaab ^

28191d31 ^
f24eeaab ^
b07576d2 ^
5eb5a8de ^
b07576d2 ^
5eb5a8de ^
5eb5a8de ^




b07576d2 ^
28191d31 ^

5eb5a8de ^
51ae6e61 ^









2b250717 ^
51ae6e61 ^






20d6e2f1 ^
20d6e2f1 ^
51ae6e61 ^

20d6e2f1 ^
4896fd81 ^


51ae6e61 ^
16cf7896 ^
51ae6e61 ^
68578a78 ^







25cd8e98 ^
2b250717 ^
68578a78 ^

25cd8e98 ^
f205e7f0 ^
68578a78 ^

87eb3aca ^
2b250717 ^
87eb3aca ^





68578a78 ^



25cd8e98 ^


5eb5a8de ^
87eb3aca ^

68578a78 ^

c00d3b94 ^

c00d3b94 ^
f24eeaab ^

493fd4e9 ^

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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348