// // SBridge.h // I2PLauncher // // Created by Mikal Villa on 18/09/2018. // Copyright © 2018 The I2P Project. All rights reserved. // #import #import #import "RouterTask.h" #ifdef __cplusplus #include #include #include #include #include // TODO: Configure the project to avoid such includes. #include "../include/fn.h" namespace osx { inline void openUrl(NSString* url) { [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString: url]]; } } inline std::vector globVector(const std::string& pattern){ glob_t glob_result; glob(pattern.c_str(),GLOB_TILDE,NULL,&glob_result); std::vector files; for(unsigned int i=0;i