2023-08-27 10:46:41 -07:00
|
|
|
#import "ios_controller_wrapper.h"
|
|
|
|
|
#include "ios_controller.h"
|
|
|
|
|
|
|
|
|
|
@implementation IosControllerWrapper
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithCppController:(IosController *)controller {
|
|
|
|
|
self = [super init];
|
|
|
|
|
if (self) {
|
|
|
|
|
cppController = controller;
|
|
|
|
|
}
|
|
|
|
|
return self;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void)vpnStatusDidChange:(NSNotification *)notification {
|
|
|
|
|
|
|
|
|
|
NETunnelProviderSession *session = (NETunnelProviderSession *)notification.object;
|
|
|
|
|
|
|
|
|
|
if (session ) {
|
|
|
|
|
cppController->vpnStatusDidChange(session);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
- (void) vpnConfigurationDidChange:(NSNotification *)notification {
|
2024-03-04 15:25:49 +03:00
|
|
|
// cppController->vpnStatusDidChange(notification);
|
2023-08-27 10:46:41 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@end
|