31 #if defined(OSVR_ANDROID)
44 #if defined(OSVR_ANDROID)
51 #if defined(OSVR_ANDROID)
53 OSVR_DEV_VERBOSE(
"Creating android auto-start server. Looking at config file paths:");
55 for(
size_t i = 0; i < configPaths.size(); i++) {
56 OSVR_DEV_VERBOSE(configPaths[i]);
60 OSVR_DEV_VERBOSE(
"Android-auto-start server created. Starting server thread...");
63 OSVR_DEV_VERBOSE(
"Android server thread started...");
66 auto server = osvr::client::getServerBinaryDirectoryPath();
68 OSVR_DEV_VERBOSE(
"Attempting to auto-start OSVR server from path " << *server);
69 auto exePath = osvr::client::getServerLauncherBinaryPath();
71 OSVR_DEV_VERBOSE(
"No server launcher binary available.");
76 OSVR_DEV_VERBOSE(
"Could not auto-start server process.");
80 OSVR_DEV_VERBOSE(
"The current server location is currently unknown. Assuming server is already running.");
88 #if defined(OSVR_ANDROID)
Internal API to locate the current OSVR Server on the file system.
OSVR_ReturnCode osvrStartProcess(const char *executablePath, const char *workingDirectory)
INTERNAL ONLY - start a process in a platform agnostic way.
#define OSVR_RETURN_FAILURE
The "failure" value for an OSVR_ReturnCode.
void osvrClientAttemptServerAutoStart()
Ensures the OSVR server process/thread is running. Call once per process. The server may or may not a...
Platform agnostic process utilities.
Platform specific search paths for osvr server config files.
OSVR_SERVER_EXPORT ServerPtr configureServerFromFirstFileInList(std::vector< std::string > const &configNames)
This iterates over a vector that contains a list of potential config files, and uses the first workin...
shared_ptr< Server > ServerPtr
How one should hold a Server.
void osvrClientReleaseAutoStartedServer()
Ensures any OSVR server-related resources in the client are released. Call once per process...
API to attempt OSVR server auto-start.
OSVR_SERVER_EXPORT std::vector< std::string > getDefaultConfigFilePaths()
this returns a vector of default server configuration file paths.