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_RELAY_H
#define OMNI_SERVER_UDP_RELAY_H
#include "omni_common.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct udp_relay udp_relay_t;
udp_relay_t *udp_relay_open(const char *listen_addr, const char *upstream_addr);
int udp_relay_serve(udp_relay_t *relay);
int udp_relay_close(udp_relay_t *relay);
void udp_relay_free(udp_relay_t *relay);
#ifdef __cplusplus
}
#endif
#endif