Neonode zForce(TM) SDK

HidPipeTransportEnumeration.h
Go to the documentation of this file.
1
10 #ifndef TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H
11 #define TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H 1
12
13 #ifndef ZFORCECOMMON_H
14 #error Please include "zForceCommon.h" before this file.
15 #endif // ZFORCECOMMON_H
16
17 // Forward declaration
18 typedef struct HidPipeTransport HidPipeTransport;
19
23 typedef struct HidPipeTransportEnumeration HidPipeTransportEnumeration;
29 struct HidPipeTransportEnumeration
30 {
31 zForce * zForce;
32 Queue * Queue;
33 void * Private;
34
42 void ( * Destructor) (HidPipeTransportEnumeration * self);
43
57 bool ( * AddHidPipeTransport) (HidPipeTransportEnumeration * self,
58 HidPipeTransport * transport);
77 struct hid_device_info * ( * Enumerate) (HidPipeTransportEnumeration * self,
78 HidPipeTransport * transport, uint16_t vid, uint16_t pid);
88 bool ( * IsTransportListEmpty) (HidPipeTransportEnumeration * self);
89 };
90
91 #ifdef __cplusplus
92 extern "C"
93 {
94 #endif // __cplusplus
95 DLLINTERNAL HidPipeTransportEnumeration * HidPipeTransportEnumeration_GetInstance (void);
96
97 #if IS_TESTING == true
98 #ifdef __linux__
99 DLLINTERNAL void PublicHidPipeTransportEnumerationThreadEntryPoint (HidPipeTransportEnumeration *self);
100 #elif defined(_WIN32)
101 DLLINTERNAL DWORD WINAPI PublicHidPipeTransportEnumerationThreadEntryPoint (void * data);
102 #endif // __linux__ elif _WIN32
103 #endif // IS_TESTING == true
104
105 #ifdef __cplusplus
106 }
107 #endif // __cplusplus
108
109 #endif // TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H
HidPipeTransportEnumeration
Struct containing the HidPipeTransportEnumeration information.
Definition: HidPipeTransportEnumeration.h:30
HidPipeTransportEnumeration::Destructor
void(* Destructor)(HidPipeTransportEnumeration *self)
Destroys the HidPipeTransportEnumeration.
Definition: HidPipeTransportEnumeration.h:42
HidPipeTransportEnumeration::zForce
zForce * zForce
Pointer to zForce.
Definition: HidPipeTransportEnumeration.h:31
HidPipeTransportEnumeration::IsTransportListEmpty
bool(* IsTransportListEmpty)(HidPipeTransportEnumeration *self)
Checks if there is anything in the internal list of HidPipeTransports.
Definition: HidPipeTransportEnumeration.h:88
HidPipeTransportEnumeration::Private
void * Private
Pointer to private data structure.
Definition: HidPipeTransportEnumeration.h:33
HidPipeTransportEnumeration::AddHidPipeTransport
bool(* AddHidPipeTransport)(HidPipeTransportEnumeration *self, HidPipeTransport *transport)
Adds a HidPipeTransport to the internal list.
Definition: HidPipeTransportEnumeration.h:57
HidPipeTransportEnumeration::Queue
Queue * Queue
Pointer to queue.
Definition: HidPipeTransportEnumeration.h:32
HidPipeTransport
Struct containing the HidPipeTransport information.
Definition: HidPipeTransport.h:27
Queue
The Queue struct.
Definition: Queue.h:25
zForce
Main struct.
Definition: zForce.h:29