ios: PCA Phobos VPN for iPhone (source)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1
ios/WireGuardKit/Sources/WireGuardKitGo/dummy.c
Normal file
1
ios/WireGuardKit/Sources/WireGuardKitGo/dummy.c
Normal file
@@ -0,0 +1 @@
|
||||
// Empty
|
||||
5
ios/WireGuardKit/Sources/WireGuardKitGo/module.modulemap
Normal file
5
ios/WireGuardKit/Sources/WireGuardKitGo/module.modulemap
Normal file
@@ -0,0 +1,5 @@
|
||||
module WireGuardKitGo {
|
||||
umbrella header "wireguard.h"
|
||||
link "wg-go"
|
||||
export *
|
||||
}
|
||||
23
ios/WireGuardKit/Sources/WireGuardKitGo/wireguard.h
Normal file
23
ios/WireGuardKit/Sources/WireGuardKitGo/wireguard.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* Copyright (C) 2018-2023 WireGuard LLC. All Rights Reserved.
|
||||
*/
|
||||
|
||||
#ifndef WIREGUARD_H
|
||||
#define WIREGUARD_H
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef void(*logger_fn_t)(void *context, int level, const char *msg);
|
||||
extern void wgSetLogger(void *context, logger_fn_t logger_fn);
|
||||
extern int wgTurnOn(const char *settings, int32_t tun_fd);
|
||||
extern void wgTurnOff(int handle);
|
||||
extern int64_t wgSetConfig(int handle, const char *settings);
|
||||
extern char *wgGetConfig(int handle);
|
||||
extern void wgBumpSockets(int handle);
|
||||
extern void wgDisableSomeRoamingForBrokenMobileSemantics(int handle);
|
||||
extern const char *wgVersion();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user