Return values to configuration class and add types to the umbrella header

This commit is contained in:
Sergey Abramchuk
2017-04-27 19:17:14 +03:00
parent eab5cd72d7
commit 0025e4f8ac
6 changed files with 224 additions and 185 deletions
@@ -16,4 +16,13 @@ using namespace openvpn;
@property (readonly) ClientAPI::Config config;
+ (OpenVPNTransportProtocol)getTransportProtocolFromString:(nullable NSString *)value;
+ (nonnull NSString *)getStringFromTransportProtocol:(OpenVPNTransportProtocol)protocol;
+ (OpenVPNIPv6Preference)getIPv6PreferenceFromString:(nullable NSString *)value;
+ (nonnull NSString *)getStringFromIPv6Preference:(OpenVPNIPv6Preference)preference;
+ (OpenVPNCompressionMode)getCompressionModeFromString:(nullable NSString *)value;
+ (nonnull NSString *)getStringFromCompressionMode:(OpenVPNCompressionMode)compressionMode;
@end