Gammu internals  1.38.0
usb.h
Go to the documentation of this file.
1 
10 #ifndef __device__usb__usb_h__
11 #define __device__usb__usb_h__
12 
13 #include <gammu-types.h>
14 #include <gammu-statemachine.h>
15 
16 /* Hack to avoid need for including libusb.h in this header, these are just pointers anyway */
17 #if !defined(__LIBUSB_H__) && !defined(LIBUSB_H)
18 #define libusb_context void
19 #define libusb_device_handle void
20 #define struct_libusb_device_descriptor void
21 #define libusb_device void
22 #else
23 #define struct_libusb_device_descriptor struct libusb_device_descriptor
24 #endif
25 
26 typedef struct {
35  unsigned char ep_read;
36  unsigned char ep_write;
38 
40 #endif
int configuration
Definition: usb.h:29
int data_iface
Definition: usb.h:32
#define libusb_context
Definition: usb.h:18
#define libusb_device_handle
Definition: usb.h:19
gboolean(* GSM_USB_Match_Function)(GSM_StateMachine *s, libusb_device *dev, struct_libusb_device_descriptor *desc)
Definition: usb.h:39
int data_idlesetting
Definition: usb.h:34
int data_altsetting
Definition: usb.h:33
unsigned char ep_write
Definition: usb.h:36
int control_altsetting
Definition: usb.h:31
int gboolean
Definition: gammu-types.h:23
libusb_device_handle * handle
Definition: usb.h:28
int control_iface
Definition: usb.h:30
unsigned char ep_read
Definition: usb.h:35
libusb_context * context
Definition: usb.h:27
#define struct_libusb_device_descriptor
Definition: usb.h:20
#define libusb_device
Definition: usb.h:21