LeiaSR SDK 720218b2 v1.32.7.6322 2025-02-13T14:55:38Z
Stable
displays_admin_c.h
Go to the documentation of this file.
1
5#ifndef DISPLAYS_ADMIN_C_H
6#define DISPLAYS_ADMIN_C_H
7
8#include "sr/core_c.h"
9
10typedef void* SR_screen;
11
12#ifdef WIN32
13#ifdef __cplusplus
14# ifdef COMPILING_DLL_SimulatedRealityDisplays
15# define SRAPI extern "C" __declspec(dllexport)
16# else
17# define SRAPI extern "C" __declspec(dllimport)
18# endif
19#else
20# ifdef COMPILING_DLL_SimulatedRealityDisplays
21# error Trying to compile SimulatedRealityDisplays.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
31
41
48
55
62
69
78
87
96
106SRAPI char* getAdditionalSerialNumber(SR_switchableLensHintAdmin lensAdmin, unsigned char index);
107
108#ifdef WIN32
118SRAPI void getNewDeviceSerialNumbers(const char* serialNumbers, unsigned int timeBetweenChecks, bool* active);
119#endif
120
121#undef SRAPI
122
123#endif // DISPLAYS_ADMIN_C_H
void * SRContext
Definition: admin_c.h:10
SRAPI void enableDefaultSwitching(SR_switchableLensHintAdmin lensAdmin)
SRAPI void lensDisableHintAdmin(SR_switchableLensHintAdmin lensAdmin)
#define SRAPI
Definition: displays_admin_c.h:27
SRAPI char * getVersion(SR_switchableLensHintAdmin lensAdmin)
Get the Version info of the switchable lens.
SRAPI char * getAdditionalSerialNumber(SR_switchableLensHintAdmin lensAdmin, unsigned char index)
Get the Additional Serial Numbers of the switchable lens.
SRAPI void lensEnableHintAdmin(SR_switchableLensHintAdmin lensAdmin)
SRAPI void disableByForce(SR_switchableLensHintAdmin lensAdmin)
SRAPI void deleteSwitchableLensHintAdmin(SR_switchableLensHintAdmin lensAdmin)
Cleans up underlying object instances used to facilitate indicating lens switch admin features.
SRAPI char * getSerialNumber(SR_switchableLensHintAdmin lensAdmin)
Get the Serial Number of the switchable lens.
void * SR_screen
Definition: displays_admin_c.h:10
void * SR_switchableLensHintAdmin
Definition: displays_admin_c.h:30
SRAPI SR_switchableLensHintAdmin createSwitchableLensHintAdmin(SRContext context)
Creates a functional SwitchableLensHintAdmin instance.