// // SBridge.h // I2PLauncher // // Created by Mikal Villa on 18/09/2018. // Copyright © 2018 The I2P Project. All rights reserved. // #import #import #ifdef __cplusplus #include #include #include #include #include #include "include/fn.h" std::future startupRouter(NSString* javaBin, NSArray* arguments, NSString* i2pBaseDir); 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