mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2024-10-06 17:22:07 +08:00
Declare class contains client configuration
This commit is contained in:
parent
8cba80999b
commit
a043f5eb84
19
OpenVPN Adapter/OpenVPNConfiguration+Internal.h
Normal file
19
OpenVPN Adapter/OpenVPNConfiguration+Internal.h
Normal file
@ -0,0 +1,19 @@
|
||||
//
|
||||
// OpenVPNConfiguration+Internal.h
|
||||
// OpenVPN Adapter
|
||||
//
|
||||
// Created by Sergey Abramchuk on 21.04.17.
|
||||
//
|
||||
//
|
||||
|
||||
#import <client/ovpncli.hpp>
|
||||
|
||||
#import "OpenVPNConfiguration.h"
|
||||
|
||||
using namespace openvpn;
|
||||
|
||||
@interface OpenVPNConfiguration (Internal)
|
||||
|
||||
@property (readonly) ClientAPI::Config config;
|
||||
|
||||
@end
|
13
OpenVPN Adapter/OpenVPNConfiguration.h
Normal file
13
OpenVPN Adapter/OpenVPNConfiguration.h
Normal file
@ -0,0 +1,13 @@
|
||||
//
|
||||
// OpenVPNConfiguration.h
|
||||
// OpenVPN Adapter
|
||||
//
|
||||
// Created by Sergey Abramchuk on 21.04.17.
|
||||
//
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface OpenVPNConfiguration : NSObject
|
||||
|
||||
@end
|
29
OpenVPN Adapter/OpenVPNConfiguration.mm
Normal file
29
OpenVPN Adapter/OpenVPNConfiguration.mm
Normal file
@ -0,0 +1,29 @@
|
||||
//
|
||||
// OpenVPNConfiguration.m
|
||||
// OpenVPN Adapter
|
||||
//
|
||||
// Created by Sergey Abramchuk on 21.04.17.
|
||||
//
|
||||
//
|
||||
|
||||
#import "OpenVPNConfiguration.h"
|
||||
#import "OpenVPNConfiguration+Internal.h"
|
||||
|
||||
@interface OpenVPNConfiguration () {
|
||||
ClientAPI::Config _config;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation OpenVPNConfiguration (Internal)
|
||||
|
||||
- (ClientAPI::Config)config {
|
||||
return _config;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation OpenVPNConfiguration
|
||||
|
||||
|
||||
@end
|
Loading…
Reference in New Issue
Block a user