feat: Go转C

This commit is contained in:
2026-03-30 13:52:56 +08:00
parent fd0270084b
commit d5ef84200e
46 changed files with 14830 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
#ifndef OMNI_SERVER_UDP_HUB_H
#define OMNI_SERVER_UDP_HUB_H
#include "transport_udp.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct udp_hub udp_hub_t;
udp_hub_t *udp_hub_open(const char *listen_addr, latency_logger_t *logger, tx_timestamp_debug_logger_t *debug_logger, int enable_timestamping);
int udp_hub_serve(udp_hub_t *hub);
int udp_hub_close(udp_hub_t *hub);
void udp_hub_free(udp_hub_t *hub);
#ifdef __cplusplus
}
#endif
#endif