Files
shadowsocks-libev/tests/consumer/main.c
Max Lv 201e70c4bd Modernize C builds with offline dependencies and portable runtime helpers (#3050)
Bundle pinned offline dependencies, remove libcork/libipset and submodule requirements, and add portable runtime helpers with relocatable static/shared library installations.

Add Clang static build validation for Linux/musl, macOS and Windows, real TCP/UDP and SIP003 interoperability coverage, and recorded performance tradeoffs. All 21 hosted checks pass at the reviewed PR head 8d504e6218.
2026-09-11 13:42:11 +08:00

8 lines
451 B
C

#include <stddef.h>
#include <shadowsocks.h>
/* Force the linker to resolve the complete embedding API and its dependencies
* without starting an unbounded event loop in this installation smoke test. */
static int (*volatile start)(profile_t) = start_ss_local_server;
static int (*volatile callback_start)(profile_t, ss_local_callback, void *) = start_ss_local_server_with_callback;
int main(void) { return start == NULL || callback_start == NULL; }