Neonode zForce(TM) SDK

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

HidPipeTransportEnumeration.h
Go to the documentation of this file.
1
11 #if !defined(TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H) && !defined(CONTAINS_HIDPIPETRANSPORTENUMERATION)
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;
31 struct HidPipeTransportEnumeration
32 {
33 #endif // !defined(TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORT_H) && !defined(CONTAINS_HIDPIPETRANSPORTENUMERATION)
34 #if !defined(TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H) || defined(CONTAINS_HIDPIPETRANSPORTENUMERATION)
35 zForce * zForce;
36 Queue * Queue;
37 void * Private;
38
43 void ( * Destructor)(HidPipeTransportEnumeration * self);
52 bool ( * AddHidPipeTransport)(HidPipeTransportEnumeration * self,
53 HidPipeTransport * transport);
67 struct hid_device_info * ( * Enumerate)(HidPipeTransportEnumeration * self,
68 HidPipeTransport * transport, uint16_t vid, uint16_t pid);
74 bool ( * IsTransportListEmpty)(HidPipeTransportEnumeration * self);
75 #endif // !defined(TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORT_H) || defined(CONTAINS_HIDPIPETRANSPORTENUMERATION)
76 #if !defined(TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H) && !defined(CONTAINS_HIDPIPETRANSPORTENUMERATION)
77 };
78
79 #ifdef __cplusplus
80 extern "C"
81 {
82 #endif // __cplusplus
83 DLLINTERNAL HidPipeTransportEnumeration * HidPipeTransportEnumeration_GetInstance (void);
84
85 #if IS_TESTING == true
86 #ifdef __linux__
87 DLLINTERNAL void PublicHidPipeTransportEnumerationThreadEntryPoint (HidPipeTransportEnumeration *self);
88 #elif defined(_WIN32)
89 DLLINTERNAL DWORD WINAPI PublicHidPipeTransportEnumerationThreadEntryPoint (void * data);
90 #endif // __linux__ elif _WIN32
91 #endif // IS_TESTING == true
92
93 #ifdef __cplusplus
94 }
95 #endif // __cplusplus
96
97 #define TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H
98 #endif // !defined(TRANSPORT_HIDPIPETRANSPORT_HIDPIPETRANSPORTENUMERATION_H) && !defined(CONTAINS_HIDPIPETRANSPORTENUMERATION)
HidPipeTransportEnumeration
Struct containing the HidPipeTransportEnumeration information.
Definition: HidPipeTransportEnumeration.h:31
HidPipeTransportEnumeration::zForce
zForce * zForce
Pointer to zForce.
Definition: HidPipeTransportEnumeration.h:35
HidPipeTransport
Struct containing the HidPipeTransport information.
Definition: HidPipeTransport.h:28
Queue
The Queue struct.
Definition: Queue.h:25
HidPipeTransportEnumeration::AddHidPipeTransport
bool(* AddHidPipeTransport)(HidPipeTransportEnumeration *self, HidPipeTransport *transport)
Adds a HidPipeTransport to the internal list. On failure, errno is set.
Definition: HidPipeTransportEnumeration.h:52
HidPipeTransportEnumeration::Queue
Queue * Queue
Pointer to queue.
Definition: HidPipeTransportEnumeration.h:36
HidPipeTransportEnumeration::Private
void * Private
Pointer to private data structure.
Definition: HidPipeTransportEnumeration.h:37
zForce
Main struct.
Definition: zForce.h:28
HidPipeTransportEnumeration::Destructor
void(* Destructor)(HidPipeTransportEnumeration *self)
Destroys the HidPipeTransportEnumeration.
Definition: HidPipeTransportEnumeration.h:43
HidPipeTransportEnumeration::IsTransportListEmpty
bool(* IsTransportListEmpty)(HidPipeTransportEnumeration *self)
Checks if there is anything in the internal list of HidPipeTransports.
Definition: HidPipeTransportEnumeration.h:74