-
Notifications
You must be signed in to change notification settings - Fork 232
/
Copy pathHAPAccessory+Info.h
47 lines (39 loc) · 1.3 KB
/
HAPAccessory+Info.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
// 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_ACCESSORY_INFO_H
#define HAP_ACCESSORY_INFO_H
#ifdef __cplusplus
extern "C" {
#endif
#include "HAP.h"
#if __has_feature(nullability)
#pragma clang assume_nonnull begin
#endif
/**
* Serializes the body of a HAP-Info-Read-Response.
*
* @param server Accessory server.
* @param session Session on which the request came in.
* @param accessory The accessory on which the request came in.
* @param responseWriter Writer to serialize Characteristic Signature into.
*
* @return kHAPError_None If successful.
* @return kHAPError_Unknown If an I/O error occurred.
* @return kHAPError_OutOfResources If writer does not have enough capacity.
*/
HAP_RESULT_USE_CHECK
HAPError HAPAccessoryGetInfoResponse(
HAPAccessoryServerRef* server,
HAPSessionRef* session,
const HAPAccessory* accessory,
HAPTLVWriterRef* responseWriter);
#if __has_feature(nullability)
#pragma clang assume_nonnull end
#endif
#ifdef __cplusplus
}
#endif
#endif