diff options
Diffstat (limited to 'include/libumumble.h')
-rw-r--r-- | include/libumumble.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/libumumble.h b/include/libumumble.h index 7bd03b3..43ba3ec 100644 --- a/include/libumumble.h +++ b/include/libumumble.h @@ -6,6 +6,7 @@ extern "C" { #endif /* __cplusplus */ #include <uv.h> +#include <tlsuv/tlsuv.h> enum mumble_ctx_status { UNINITIALIZED = 0, @@ -21,6 +22,7 @@ typedef struct mumble_ctx { uv_loop_t uv_loop; uv_getaddrinfo_t uv_resolver; uv_connect_t uv_connect_req; + tlsuv_stream_t tls_stream; uv_tcp_t uv_tcp_socket; } mumble_ctx_t; @@ -42,7 +44,9 @@ int mumble_ctx_init(mumble_ctx_t *ctx); */ void mumble_ctx_close(mumble_ctx_t *ctx); -int mumble_connect(mumble_ctx_t *ctx, const char *address, const unsigned short port); +int mumble_connect(mumble_ctx_t *ctx, const char *host, int port); + +int mumble_run(mumble_ctx_t *ctx); #ifdef __cplusplus } |