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"
6#include "Capsule/CDefinesPrivate.h"
7#include "Capsule/CDeviceInfoList.h"
8
9#ifdef __cplusplus
10 extern "C" {
11#endif
12
18 CLC_CLASS_WN(DeviceLocatorPrivate, clCDeviceLocator);
19
23 CLC_STRUCT(clCDeviceLocatorDelegateDeviceInfoList);
24 typedef void (*clCDeviceLocatorHandlerDeviceInfoList)(clCDeviceLocator, clCDeviceInfoList);
25 CL_DLL void clCDeviceLocatorDelegateDeviceInfoList_Set(
26 clCDeviceLocatorDelegateDeviceInfoList delegate,
27 clCDeviceLocatorHandlerDeviceInfoList callback) NOEXCEPT;
28
36 CL_DLL clCDeviceLocator clCClient_ChooseDeviceType(clCClient client,
37 clCDeviceType deviceType) NOEXCEPT;
38
44 CL_DLL void clCDeviceLocator_Destroy(clCDeviceLocator locator) NOEXCEPT;
52 CL_DLL void clCDeviceLocator_RequestDevices(clCDeviceLocator locator,
53 int32_t searchTime) NOEXCEPT;
54
61 CL_DLL clCDeviceLocatorDelegateDeviceInfoList
62 clCDeviceLocator_GetOnDevicesEvent(clCDeviceLocator locator) NOEXCEPT;
63
64#ifdef __cplusplus
65}
66#endif
CClient.h
CDefinesPrivate.h
CLC_STRUCT
#define CLC_STRUCT(Name)
Definition CDefinesPrivate.h:24
NOEXCEPT
#define NOEXCEPT
Definition CDefinesPrivate.h:52
CL_DLL
#define CL_DLL
Definition CDefinesPrivate.h:21
CLC_CLASS_WN
#define CLC_CLASS_WN(Wrapped, Name)
Definition CDefinesPrivate.h:54
clCDeviceType
clCDeviceType
Neiry Device type.
Definition CDeviceInfo.h:15
CDeviceInfoList.h
clCDeviceLocator_GetOnDevicesEvent
CL_DLL clCDeviceLocatorDelegateDeviceInfoList clCDeviceLocator_GetOnDevicesEvent(clCDeviceLocator locator) NOEXCEPT
clCDeviceLocator_RequestDevices
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...
clCDeviceLocatorDelegateDeviceInfoList_Set
CL_DLL void clCDeviceLocatorDelegateDeviceInfoList_Set(clCDeviceLocatorDelegateDeviceInfoList delegate, clCDeviceLocatorHandlerDeviceInfoList callback) NOEXCEPT
clCDeviceLocator_Destroy
CL_DLL void clCDeviceLocator_Destroy(clCDeviceLocator locator) NOEXCEPT
clCDeviceLocatorHandlerDeviceInfoList
void(* clCDeviceLocatorHandlerDeviceInfoList)(clCDeviceLocator, clCDeviceInfoList)
Definition CDeviceLocator.h:24
clCClient_ChooseDeviceType
CL_DLL clCDeviceLocator clCClient_ChooseDeviceType(clCClient client, clCDeviceType deviceType) NOEXCEPT