forked from Yurik72/ESPHap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elgato.h
50 lines (41 loc) · 2.08 KB
/
elgato.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef __ELGATO_H__
#define __ELGATO_H__
#define ELGATO_EPOCH_OFFSET 978307200
#define HOMEKIT_SERVICE_ELGATO_HISTORY "E863F007-079E-48FF-8F27-9C2605A29F52"
#define HOMEKIT_CHARACTERISTIC_ELGATO_SET_TIME "E863F121-079E-48FF-8F27-9C2605A29F52" // 121 => S2W2
#define HOMEKIT_CHARACTERISTIC_ELGATO_HISTORY_REQUEST "E863F11C-079E-48FF-8F27-9C2605A29F52" // 11C => S2W1
#define HOMEKIT_CHARACTERISTIC_ELGATO_HISTORY_STATUS "E863F116-079E-48FF-8F27-9C2605A29F52" // 116 => S2R1
#define HOMEKIT_CHARACTERISTIC_ELGATO_HISTORY_ENTRIES "E863F117-079E-48FF-8F27-9C2605A29F52" // 117 => S2R2
#define HOMEKIT_DECLARE_CHARACTERISTIC_ELGATO_SET_TIME(_value, ...) \
.type = HOMEKIT_CHARACTERISTIC_ELGATO_SET_TIME, \
.description = "SetTime", \
.format = homekit_format_data, \
.permissions = homekit_permissions_paired_read \
| homekit_permissions_notify, \
.value = HOMEKIT_DATA_(NULL,128), \
##__VA_ARGS__
#define HOMEKIT_DECLARE_CHARACTERISTIC_ELGATO_HISTORY_REQUEST(_value, ...) \
.type = HOMEKIT_CHARACTERISTIC_ELGATO_HISTORY_REQUEST, \
.description = "History", \
.format = homekit_format_data, \
.permissions = homekit_permissions_paired_read \
| homekit_permissions_notify, \
.value = HOMEKIT_DATA_(NULL,128), \
##__VA_ARGS__
#define HOMEKIT_DECLARE_CHARACTERISTIC_ELGATO_HISTORY_STATUS(_value, ...) \
.type = HOMEKIT_CHARACTERISTIC_ELGATO_HISTORY_STATUS, \
.description = "History status", \
.format = homekit_format_data, \
.permissions = homekit_permissions_paired_read \
| homekit_permissions_notify, \
.value = HOMEKIT_DATA_(NULL,128), \
##__VA_ARGS__
#define HOMEKIT_DECLARE_CHARACTERISTIC_ELGATO_HISTORY_ENTRIES(_value, ...) \
.type = HOMEKIT_CHARACTERISTIC_ELGATO_HISTORY_ENTRIES, \
.description = "History entries", \
.format = homekit_format_data, \
.permissions = homekit_permissions_paired_read \
| homekit_permissions_notify, \
.value = HOMEKIT_DATA_(NULL,128), \
##__VA_ARGS__
#endif