Example
Loading...
Searching...
No Matches
CDeviceLocator.h
Go to the documentation of this file.
1// Copyright. 2019 - 2024 PSBD. All rights reserved.
2
3#pragma once
4
5#include "Capsule/CClient.h"
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
18CLC_CLASS_WN(DeviceLocatorPrivate, clCDeviceLocator);
19
28
32CLC_STRUCT(clCDeviceLocatorDelegateDeviceInfoList);
33typedef void (*clCDeviceLocatorHandlerDeviceInfoList)(clCDeviceLocator, clCDeviceInfoList, clCDeviceLocatorFailReason);
35 clCDeviceLocatorDelegateDeviceInfoList delegate,
37
45CL_DLL clCDeviceLocator clCClient_ChooseDeviceType(clCClient client,
46 clCDeviceType deviceType) NOEXCEPT;
47
53CL_DLL void clCDeviceLocator_Destroy(clCDeviceLocator locator) NOEXCEPT;
61CL_DLL void clCDeviceLocator_RequestDevices(clCDeviceLocator locator,
62 int32_t searchTime) NOEXCEPT;
63
70CL_DLL clCDeviceLocatorDelegateDeviceInfoList
72
73#ifdef __cplusplus
74}
75#endif
#define CLC_STRUCT(Name)
Definition CDefinesPrivate.h:24
#define NOEXCEPT
Definition CDefinesPrivate.h:52
#define CL_DLL
Definition CDefinesPrivate.h:21
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:54
clCDeviceType
Neiry Device type.
Definition CDeviceInfo.h:15
clCDeviceLocatorFailReason
Device locator error.
Definition CDeviceLocator.h:23
@ clC_DeviceLocatorFailReason_Unknown
Definition CDeviceLocator.h:26
@ clC_DeviceLocatorFailReason_OK
Definition CDeviceLocator.h:24
@ clC_DeviceLocatorFailReason_BluetoothDisabled
Definition CDeviceLocator.h:25
CL_DLL clCDeviceLocatorDelegateDeviceInfoList clCDeviceLocator_GetOnDevicesEvent(clCDeviceLocator locator) NOEXCEPT
void(* clCDeviceLocatorHandlerDeviceInfoList)(clCDeviceLocator, clCDeviceInfoList, clCDeviceLocatorFailReason)
Definition CDeviceLocator.h:33
CL_DLL void clCDeviceLocator_RequestDevices(clCDeviceLocator locator, int32_t searchTime) NOEXCEPT
Find available devices. Search time is in seconds. Non-blocking - OnDevices event is fired when timeo...
CL_DLL void clCDeviceLocatorDelegateDeviceInfoList_Set(clCDeviceLocatorDelegateDeviceInfoList delegate, clCDeviceLocatorHandlerDeviceInfoList callback) NOEXCEPT
CL_DLL void clCDeviceLocator_Destroy(clCDeviceLocator locator) NOEXCEPT
CL_DLL clCDeviceLocator clCClient_ChooseDeviceType(clCClient client, clCDeviceType deviceType) NOEXCEPT