aboutsummaryrefslogtreecommitdiffstats
path: root/cusb.h
diff options
context:
space:
mode:
Diffstat (limited to 'cusb.h')
-rw-r--r--cusb.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/cusb.h b/cusb.h
new file mode 100644
index 0000000..3c24a11
--- /dev/null
+++ b/cusb.h
@@ -0,0 +1,30 @@
+#ifndef __CUSB
+#define __CUSB
+
+#include "cphidget.h"
+#include "cphidgetlist.h"
+
+#ifndef EXTERNALPROTO
+int CUSBBuildList(CPhidgetList **curList);
+int CUSBOpenHandle(CPhidgetHandle phid);
+int CUSBCloseHandle(CPhidgetHandle phid);
+int CUSBSetLabel(CPhidgetHandle phid, char *buffer);
+void CUSBCleanup();
+int CUSBSetupNotifications();
+int CUSBRefreshLabelString(CPhidgetHandle phid);
+#if defined(_LINUX) && !defined(_ANDROID)
+int CUSBGetDeviceCapabilities(CPhidgetHandle phid, struct usb_device *dev,
+ struct usb_dev_handle *udev);
+#else
+int CUSBGetDeviceCapabilities(CPhidgetHandle phid, HANDLE DeviceHandle);
+#endif
+#endif
+
+PHIDGET21_API int CCONV CUSBReadPacket(CPhidgetHandle phidA, unsigned char *buffer);
+PHIDGET21_API int CCONV CUSBSendPacket(CPhidgetHandle phidA, unsigned char *buffer);
+
+#if defined(_ANDROID)
+#include "com_phidgets_usb_Manager.h"
+#endif
+
+#endif