mirror of
https://github.com/deneraraujo/OpenVPNAdapter.git
synced 2026-02-11 00:00:08 +08:00
Return core copyright
This commit is contained in:
@@ -98,6 +98,11 @@ NS_SWIFT_NAME(handle(logMessage:));
|
||||
*/
|
||||
@interface OpenVPNAdapter (Public)
|
||||
|
||||
/**
|
||||
Returns core copyright
|
||||
*/
|
||||
@property (class, nonnull, readonly, nonatomic) NSString *copyright;
|
||||
|
||||
/**
|
||||
Returns platform description
|
||||
*/
|
||||
|
||||
@@ -128,6 +128,11 @@ NSString * const OpenVPNAdapterErrorEventKey = @"me.ss-abramchuk.openvpn-adapter
|
||||
|
||||
#pragma mark Properties
|
||||
|
||||
+ (NSString *)copyright {
|
||||
std::string copyright = OpenVPNClient::copyright();
|
||||
return [NSString stringWithUTF8String:copyright.c_str()];
|
||||
}
|
||||
|
||||
+ (NSString *)platform {
|
||||
std::string platform = OpenVPNClient::platform();
|
||||
return [NSString stringWithUTF8String:platform.c_str()];
|
||||
|
||||
Reference in New Issue
Block a user