Distributed Multihead X  1.16.4
usb-common.h File Reference

Go to the source code of this file.

Enumerations

enum  usbType { usbMouse, usbKeyboard, usbOther }
 

Functions

void * usbCreatePrivate (DeviceIntPtr pDevice)
 
void usbDestroyPrivate (void *priv)
 
void usbRead (DevicePtr pDev, dmxMotionProcPtr motion, dmxEnqueueProcPtr enqueue, int minButton, DMXBlockType block)
 
void usbInit (DevicePtr pDev, usbType type)
 
void usbOff (DevicePtr pDev)
 

Detailed Description

Interface to common USB support.

See also
usb-common.c
usb-mouse.c
usb-keyboard.c
usb-other.c

Enumeration Type Documentation

enum usbType
Enumerator
usbMouse 
usbKeyboard 
usbOther 

Function Documentation

void* usbCreatePrivate ( DeviceIntPtr  pDevice)

Create a private structure for use within this file.

References _myPrivate::fd, and _myPrivate::pDevice.

void usbDestroyPrivate ( void *  priv)

Destroy a private structure.

void usbInit ( DevicePtr  pDev,
usbType  type 
)

Initialized pDev as a usbMouse, usbKeyboard, or usbOther device.

References FATAL1, GETPRIV, O_NONBLOCK, test_bit, test_bits, usbKeyboard, usbMouse, usbOther, and usbPrint().

Referenced by kbdUSBInit(), mouUSBInit(), and othUSBInit().

void usbOff ( DevicePtr  pDev)

Turn pDev off (i.e., stop taking input from pDev).

References GETPRIV.

void usbRead ( DevicePtr  pDev,
dmxMotionProcPtr  motion,
dmxEnqueueProcPtr  enqueue,
int  minButton,
DMXBlockType  block 
)

Generated on Tue Aug 18 2015 01:27:31 for Distributed Multihead X by doxygen 1.8.8