From a63f7a01179974912d128e8694ccf4a6eacf8400 Mon Sep 17 00:00:00 2001 From: Sergey Abramchuk Date: Sat, 11 Feb 2017 16:45:02 +0300 Subject: [PATCH] Declare public methods of adapter and add adapter header to the bridge header --- OpenVPN Tunnel Provider/Bridging-Header.h | 1 + OpenVPN Tunnel Provider/OpenVPNAdapter+Provider.h | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/OpenVPN Tunnel Provider/Bridging-Header.h b/OpenVPN Tunnel Provider/Bridging-Header.h index 1b2cb5d..ea23fff 100644 --- a/OpenVPN Tunnel Provider/Bridging-Header.h +++ b/OpenVPN Tunnel Provider/Bridging-Header.h @@ -2,3 +2,4 @@ // Use this file to import your target's public headers that you would like to expose to Swift. // +#import "OpenVPNAdapter+Provider.h" diff --git a/OpenVPN Tunnel Provider/OpenVPNAdapter+Provider.h b/OpenVPN Tunnel Provider/OpenVPNAdapter+Provider.h index a3f0117..6206777 100644 --- a/OpenVPN Tunnel Provider/OpenVPNAdapter+Provider.h +++ b/OpenVPN Tunnel Provider/OpenVPNAdapter+Provider.h @@ -34,4 +34,12 @@ NS_SWIFT_NAME(handle(error:)); @property (weak, nonatomic, null_unspecified) id delegate; +- (BOOL)configureWithUsername:(nonnull NSString *)username + password:(nonnull NSString *)password + error:(out NSError * __nullable * __nullable)error +NS_SWIFT_NAME(configure(username:password:)); + +- (void)connect; +- (void)disconnect; + @end