Use sourcecode for libjuice

This commit is contained in:
dijunkun
2023-07-13 16:58:20 +08:00
parent ef6a04dc97
commit 8cd87a2646
76 changed files with 14877 additions and 179 deletions

32
thirdparty/libjuice/src/conn_thread.h vendored Normal file
View File

@@ -0,0 +1,32 @@
/**
* Copyright (c) 2022 Paul-Louis Ageneau
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
#ifndef JUICE_CONN_THREAD_H
#define JUICE_CONN_THREAD_H
#include "addr.h"
#include "conn.h"
#include "thread.h"
#include "timestamp.h"
#include <stdbool.h>
#include <stdint.h>
int conn_thread_registry_init(conn_registry_t *registry, udp_socket_config_t *config);
void conn_thread_registry_cleanup(conn_registry_t *registry);
int conn_thread_init(juice_agent_t *agent, conn_registry_t *registry, udp_socket_config_t *config);
void conn_thread_cleanup(juice_agent_t *agent);
void conn_thread_lock(juice_agent_t *agent);
void conn_thread_unlock(juice_agent_t *agent);
int conn_thread_interrupt(juice_agent_t *agent);
int conn_thread_send(juice_agent_t *agent, const addr_record_t *dst, const char *data, size_t size,
int ds);
int conn_thread_get_addrs(juice_agent_t *agent, addr_record_t *records, size_t size);
#endif