diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-10-23 11:31:39 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-10-29 12:08:36 +0100 |
| commit | e85070a3fb601e1872d121ce3c1c9d39f8f41036 (patch) | |
| tree | 96d57bf647f2cdc3408ad5c3163ca91ed571cb63 /exports/exports.h | |
| parent | 0076386bca8b1e49673f50323cd147ac080cfc2f (diff) | |
All: Refactor to latest ProxyGuard
Diffstat (limited to 'exports/exports.h')
| -rw-r--r-- | exports/exports.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/exports/exports.h b/exports/exports.h index a31920b..9ec39e4 100644 --- a/exports/exports.h +++ b/exports/exports.h @@ -11,8 +11,7 @@ typedef int (*StateCB)(int oldstate, int newstate, void* data); typedef void (*RefreshList)(); typedef void (*TokenGetter)(const char* server_id, int server_type, char* out, size_t len); typedef void (*TokenSetter)(const char* server_id, int server_type, const char* tokens); -typedef void (*ProxySetup)(int fd, const char* peer_ips); -typedef void (*ProxyReady)(); +typedef void (*ProxySetup)(int fd); static long long int get_read_rx_bytes(ReadRxBytes read) { @@ -34,13 +33,9 @@ static void call_token_setter(TokenSetter setter, const char* server_id, int ser { setter(server_id, server_type, tokens); } -static void call_proxy_setup(ProxySetup proxysetup, int fd, const char* peer_ips) +static void call_proxy_setup(ProxySetup proxysetup, int fd) { - proxysetup(fd, peer_ips); -} -static void call_proxy_ready(ProxyReady ready) -{ - ready(); + proxysetup(fd); } #endif /* EXPORTS_H */ |
