Skip to content

Commit 9953b7a

Browse files
committed
feat: expose juice_mux_stop_listen function
This is a follow-up to #248 that just adds the `juice_mux_stop_listen` function to `juice.h` in order to invoke it from libdatachannel.
1 parent 2fb91a3 commit 9953b7a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/juice/juice.h

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ JUICE_EXPORT int juice_get_selected_addresses(juice_agent_t *agent, char *local,
132132
JUICE_EXPORT int juice_set_local_ice_attributes(juice_agent_t *agent, const char *ufrag, const char *pwd);
133133
JUICE_EXPORT const char *juice_state_to_string(juice_state_t state);
134134
JUICE_EXPORT int juice_mux_listen(const char *bind_address, int local_port, juice_cb_mux_incoming_t cb, void *user_ptr);
135+
JUICE_EXPORT int juice_mux_stop_listen(const char *bind_address, int local_port);
135136

136137
// ICE server
137138

src/conn.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ int conn_get_addrs(juice_agent_t *agent, addr_record_t *records, size_t size) {
256256
return get_mode_entry(agent)->get_addrs_func(agent, records, size);
257257
}
258258

259-
static int juice_mux_stop_listen(const char *bind_address, int local_port) {
259+
int juice_mux_stop_listen(const char *bind_address, int local_port) {
260260
(void)bind_address;
261261
(void)local_port;
262262

0 commit comments

Comments
 (0)