LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
admin_c.h
Go to the documentation of this file.
1
5#ifndef ADMIN_C_H
6#define ADMIN_C_H
7
8//TODO include application information struct type
9
10typedef void* SRContext;
11
12#ifdef WIN32
13#ifdef __cplusplus
14# ifdef COMPILING_DLL_SimulatedRealityCore
15# define SRAPI extern "C" __declspec(dllexport)
16# else
17# define SRAPI extern "C" __declspec(dllimport)
18# endif
19#else
20# ifdef COMPILING_DLL_SimulatedRealityCore
21# error Trying to compile SimulatedRealityCore.dll using a non-C++ compiler! Use a C++ compiler instead!
22# else
23# define SRAPI __declspec(dllimport)
24# endif
25#endif
26#else
27# define SRAPI
28#endif
29
34typedef void* SR_applicationSense;
35
43
47typedef struct {
48 unsigned int size;
51
59
66
67#undef SRAPI
68
69#endif // ADMIN_C_H
SRAPI SR_applicationList getApplicationNames(SR_applicationSense applicationSense)
Returns a list of applications that are currently connected to the SR Service.
SRAPI SR_applicationSense createApplicationSense(SRContext context)
Create an application sense instance to gain information about running SR applications.
void * SRContext
Definition: admin_c.h:10
#define SRAPI
Definition: admin_c.h:27
void * SR_applicationSense
Application Programming Interface to be used by (Admin) C SR applications.
Definition: admin_c.h:34
SRAPI void cleanupApplicationList(SR_applicationList applicationList)
Clears the memory allocated for the list of applications returned by getApplicationNames.
C-compatible struct to represent the contents of the std::vector<std::string> returned in the C++ int...
Definition: admin_c.h:47
char ** applicationNames
Definition: admin_c.h:49
unsigned int size
Definition: admin_c.h:48