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
23CLC_STRUCT(clCDeviceLocatorDelegateDeviceInfoList);
24typedef void (*clCDeviceLocatorHandlerDeviceInfoList)(clCDeviceLocator, clCDeviceInfoList);
26 clCDeviceLocatorDelegateDeviceInfoList delegate,
28
36CL_DLL clCDeviceLocator clCClient_ChooseDeviceType(clCClient client,
37 clCDeviceType deviceType) NOEXCEPT;
38
44CL_DLL void clCDeviceLocator_Destroy(clCDeviceLocator locator) NOEXCEPT;
52CL_DLL void clCDeviceLocator_RequestDevices(clCDeviceLocator locator,
53 int32_t searchTime) NOEXCEPT;
54
61CL_DLL clCDeviceLocatorDelegateDeviceInfoList
63
64#ifdef __cplusplus
65}
66#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
CL_DLL clCDeviceLocatorDelegateDeviceInfoList clCDeviceLocator_GetOnDevicesEvent(clCDeviceLocator locator) NOEXCEPT
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
void(* clCDeviceLocatorHandlerDeviceInfoList)(clCDeviceLocator, clCDeviceInfoList)
Definition CDeviceLocator.h:24
CL_DLL clCDeviceLocator clCClient_ChooseDeviceType(clCClient client, clCDeviceType deviceType) NOEXCEPT