diff options
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); +} |