-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathHAPRequestHandlers+AccessoryInformation.h
115 lines (100 loc) · 3.42 KB
/
HAPRequestHandlers+AccessoryInformation.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// Copyright (c) 2015-2019 The HomeKit ADK Contributors
//
// Licensed under the Apache License, Version 2.0 (the “License”);
// you may not use this file except in compliance with the License.
// See [CONTRIBUTORS.md] for the list of HomeKit ADK project authors.
#ifndef HAP_REQUEST_HANDLERS_ACCESSORY_INFORMATION_H
#define HAP_REQUEST_HANDLERS_ACCESSORY_INFORMATION_H
#ifdef __cplusplus
extern "C" {
#endif
#include "HAP.h"
#if __has_feature(nullability)
#pragma clang assume_nonnull begin
#endif
/**
* Handle write request to the 'Identify' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationIdentifyWrite(
HAPAccessoryServerRef* server,
const HAPBoolCharacteristicWriteRequest* request,
bool value,
void* _Nullable context);
/**
* Handle read request to the 'Manufacturer' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationManufacturerRead(
HAPAccessoryServerRef* server,
const HAPStringCharacteristicReadRequest* request,
char* value,
size_t maxValueBytes,
void* _Nullable context);
/**
* Handle read request to the 'Model' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationModelRead(
HAPAccessoryServerRef* server,
const HAPStringCharacteristicReadRequest* request,
char* value,
size_t maxValueBytes,
void* _Nullable context);
/**
* Handle read request to the 'Name' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationNameRead(
HAPAccessoryServerRef* server,
const HAPStringCharacteristicReadRequest* request,
char* value,
size_t maxValueBytes,
void* _Nullable context);
/**
* Handle read request to the 'Serial Number' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationSerialNumberRead(
HAPAccessoryServerRef* server,
const HAPStringCharacteristicReadRequest* request,
char* value,
size_t maxValueBytes,
void* _Nullable context);
/**
* Handle read request to the 'Firmware Revision' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationFirmwareRevisionRead(
HAPAccessoryServerRef* server,
const HAPStringCharacteristicReadRequest* request,
char* value,
size_t maxValueBytes,
void* _Nullable context);
/**
* Handle read request to the 'Hardware Revision' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationHardwareRevisionRead(
HAPAccessoryServerRef* server,
const HAPStringCharacteristicReadRequest* request,
char* value,
size_t maxValueBytes,
void* _Nullable context);
/**
* Handle read request to the 'ADK Version' characteristic of the Accessory Information service.
*/
HAP_RESULT_USE_CHECK
HAPError HAPHandleAccessoryInformationADKVersionRead(
HAPAccessoryServerRef* server,
const HAPStringCharacteristicReadRequest* request,
char* value,
size_t maxValueBytes,
void* _Nullable context);
#if __has_feature(nullability)
#pragma clang assume_nonnull end
#endif
#ifdef __cplusplus
}
#endif
#endif