diff options
author | latex <latex@disroot.org> | 2023-01-25 01:10:44 +0100 |
---|---|---|
committer | latex <latex@disroot.org> | 2023-01-25 01:10:44 +0100 |
commit | 170025ac5d96f1c46483a88ca4372254a5da6161 (patch) | |
tree | e791e4e1e9f3d82d9da0c7e1c0b62e50359e6658 /src | |
parent | e8d5b17975a687fd115167c1df1544c949088f42 (diff) | |
download | libumumble-170025ac5d96f1c46483a88ca4372254a5da6161.tar.gz |
add context initialization and uv loop
Diffstat (limited to 'src')
-rw-r--r-- | src/ctx.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ctx.c b/src/ctx.c new file mode 100644 index 0000000..efa9101 --- /dev/null +++ b/src/ctx.c @@ -0,0 +1,15 @@ +#include <libumumble.h> +#include <uv.h> + +int mumble_init_ctx(mumble_ctx_t ctx) +{ + int result; + + result = uv_loop_init(&ctx.uv_loop); + return result; +} + +void mumble_free_ctx(mumble_ctx_t ctx) +{ + uv_loop_close(&ctx.uv_loop); +} |