forked from MSmithDev/AirAPI_Windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAirAPI_Windows.h
More file actions
37 lines (26 loc) · 773 Bytes
/
AirAPI_Windows.h
File metadata and controls
37 lines (26 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// TODO: post-draft pr, remove bg / investigation comments and links
// macOS compatibility
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
#ifdef AIRAPI_EXPORTS
#define AIR_API __attribute__((visibility("default")))
#else
#define AIR_API
#endif
#else
#pragma once
#ifdef AIRAPI_EXPORTS
#define AIR_API __declspec(dllexport)
#else
#define AIR_API __declspec(dllimport)
#endif
#endif
//Function to start connection to Air
extern "C" AIR_API int StartConnection();
//Function to stop connection to Air
extern "C" AIR_API int StopConnection();
//Function to get quaternion
extern "C" AIR_API float* GetQuaternion();
//Function to get euler
extern "C" AIR_API float* GetEuler();
//Function to get brightness
extern "C" AIR_API int GetBrightness();