evemu.h   evemu.h 
skipping to change at line 109 skipping to change at line 109
/** /**
* evemu_get_id_bustype() - get kernel device bustype * evemu_get_id_bustype() - get kernel device bustype
* @dev: the device in use * @dev: the device in use
* *
* Returns the kernel bus type used by the device. * Returns the kernel bus type used by the device.
*/ */
unsigned int evemu_get_id_bustype(const struct evemu_device *dev); unsigned int evemu_get_id_bustype(const struct evemu_device *dev);
/** /**
* evemu_set_id_bustype() - set kernel bustype
*
* @dev: the device in use
* @bustype: the bustype value to set.
*/
void evemu_set_id_bustype(struct evemu_device *dev, unsigned int bustype);
/**
* evemu_get_id_vendor() - get kernel device vendor id * evemu_get_id_vendor() - get kernel device vendor id
* @dev: the device in use * @dev: the device in use
* *
* Returns the kernel vendor id used by the device. * Returns the kernel vendor id used by the device.
*/ */
unsigned int evemu_get_id_vendor(const struct evemu_device *dev); unsigned int evemu_get_id_vendor(const struct evemu_device *dev);
/** /**
* evemu_set_id_vendor() - set kernel device vendor id
*
* @dev: the device in use
* @vendor: the vendor id value to set.
*/
void evemu_set_id_vendor(struct evemu_device *dev, unsigned int vendor);
/**
* evemu_get_id_product() - get kernel device product id * evemu_get_id_product() - get kernel device product id
* @dev: the device in use * @dev: the device in use
* *
* Returns the kernel product id used by the device. * Returns the kernel product id used by the device.
*/ */
unsigned int evemu_get_id_product(const struct evemu_device *dev); unsigned int evemu_get_id_product(const struct evemu_device *dev);
/** /**
* evemu_set_id_product() - set kernel device product id
*
* @dev: the device in use
* @product: the product id value to set.
*/
void evemu_set_id_product(struct evemu_device *dev, unsigned int product);
/**
* evemu_get_id_version() - get kernel device id version * evemu_get_id_version() - get kernel device id version
* @dev: the device in use * @dev: the device in use
* *
* Returns the kernel device id used by the device. * Returns the kernel device id used by the device.
*/ */
unsigned int evemu_get_id_version(const struct evemu_device *dev); unsigned int evemu_get_id_version(const struct evemu_device *dev);
/** /**
* evemu_set_id_version() - set kernel device id version
*
* @dev: the device in use
* @version: the version value to set.
*/
void evemu_set_id_version(struct evemu_device *dev, unsigned int version);
/**
* evemu_get_abs_minimum() - get kernel minimum value of event type * evemu_get_abs_minimum() - get kernel minimum value of event type
* @dev: the device in use * @dev: the device in use
* @code: the event type code to query * @code: the event type code to query
* *
* Returns the range minimum of the specified event type. * Returns the range minimum of the specified event type.
*/ */
int evemu_get_abs_minimum(const struct evemu_device *dev, int code); int evemu_get_abs_minimum(const struct evemu_device *dev, int code);
/** /**
* evemu_set_abs_minimum() - set kernel minimum value of event type
*
* @dev: the device in use
* @code: the event type code to set
* @min: the minimum value to set
*/
void evemu_set_abs_minimum(struct evemu_device *dev, int code, int min);
/**
* evemu_get_abs_maximum() - get kernel maximum value of event type * evemu_get_abs_maximum() - get kernel maximum value of event type
* @dev: the device in use * @dev: the device in use
* @code: the event type code to query * @code: the event type code to query
* *
* Returns the range maximum of the specified event type. * Returns the range maximum of the specified event type.
*/ */
int evemu_get_abs_maximum(const struct evemu_device *dev, int code); int evemu_get_abs_maximum(const struct evemu_device *dev, int code);
/** /**
* evemu_set_abs_maximum() - set kernel maximum value of event type
*
* @dev: the device in use
* @code: the event type code to set
* @max: the maximum value to set
*/
void evemu_set_abs_maximum(struct evemu_device *dev, int code, int max);
/**
* evemu_get_abs_maximum() - get kernel filter fuzz of event type * evemu_get_abs_maximum() - get kernel filter fuzz of event type
* @dev: the device in use * @dev: the device in use
* @code: the event type code to query * @code: the event type code to query
* *
* Returns the filter fuzz of the specified event type. * Returns the filter fuzz of the specified event type.
*/ */
int evemu_get_abs_fuzz(const struct evemu_device *dev, int code); int evemu_get_abs_fuzz(const struct evemu_device *dev, int code);
/** /**
* evemu_set_abs_fuzz() - set kernel filter fuzz of event type
*
* @dev: the device in use
* @code: the event type code to set
* @fuzz: the fuzz value to set
*/
void evemu_set_abs_fuzz(struct evemu_device *dev, int code, int fuzz);
/**
* evemu_get_abs_maximum() - get kernel flat value of event type * evemu_get_abs_maximum() - get kernel flat value of event type
* @dev: the device in use * @dev: the device in use
* @code: the event type code to query * @code: the event type code to query
* *
* Returns the flat value of the specified event type. Only used for * Returns the flat value of the specified event type. Only used for
* joysticks. * joysticks.
*/ */
int evemu_get_abs_flat(const struct evemu_device *dev, int code); int evemu_get_abs_flat(const struct evemu_device *dev, int code);
/** /**
* evemu_set_abs_flat() - set kernel filter flat of event type
*
* @dev: the device in use
* @code: the event type code to set
* @flat: the flat value to set
*/
void evemu_set_abs_flat(struct evemu_device *dev, int code, int flat);
/**
* evemu_get_abs_resolution() - get kernel resolution of event type * evemu_get_abs_resolution() - get kernel resolution of event type
* @dev: the device in use * @dev: the device in use
* @code: the event type code to query * @code: the event type code to query
* *
* Returns the resolution of the specified event type. Resolution is * Returns the resolution of the specified event type. Resolution is
* specified in units per millimeter (units/mm), or units per radian * specified in units per millimeter (units/mm), or units per radian
* where appropriate. * where appropriate.
*/ */
int evemu_get_abs_resolution(const struct evemu_device *dev, int code); int evemu_get_abs_resolution(const struct evemu_device *dev, int code);
/** /**
* evemu_set_abs_resolution() - set kernel resolution of event type
* @dev: the device in use
* @code: the event type code to set
* @res: the resolution value to set.
*
* Resolution is specified in units per millimeter (units/mm), or units per
* radian where appropriate.
*/
void evemu_set_abs_resolution(struct evemu_device *dev, int code, int res);
/**
* evemu_has_prop() - check if device has a certain property * evemu_has_prop() - check if device has a certain property
* @dev: the device in use * @dev: the device in use
* @code: the property type code to query * @code: the property type code to query
* *
* Returns true if the device has the given property. * Returns true if the device has the given property.
*/ */
int evemu_has_prop(const struct evemu_device *dev, int code); int evemu_has_prop(const struct evemu_device *dev, int code);
/** /**
* evemu_has_event() - check if device has a certain event type * evemu_has_event() - check if device has a certain event type
skipping to change at line 276 skipping to change at line 355
/** /**
* evemu_record() - read events directly from a kernel device * evemu_record() - read events directly from a kernel device
* @fp: file pointer to write the events to * @fp: file pointer to write the events to
* @fd: file descriptor of kernel device to read from * @fd: file descriptor of kernel device to read from
* @ms: maximum time to wait for an event to appear before reading (ms) * @ms: maximum time to wait for an event to appear before reading (ms)
* *
* Contiuously reads events from the kernel device and writes them to * Contiuously reads events from the kernel device and writes them to
* the file. The function terminates after ms milliseconds of * the file. The function terminates after ms milliseconds of
* inactivity. * inactivity.
* to this function. This function reads a kernel event from the file,
* and performs the microsleep necessary to deliver the event with the
* same timings as originally received.
* *
* Returns zero if successful, negative error otherwise. * Returns zero if successful, negative error otherwise.
*/ */
int evemu_record(FILE *fp, int fd, int ms); int evemu_record(FILE *fp, int fd, int ms);
/** /**
* evemu_play() - replay events from file to kernel device in realtime * evemu_play() - replay events from file to kernel device in realtime
* @fp: file pointer to read the events from * @fp: file pointer to read the events from
* @fd: file descriptor of kernel device to write to * @fd: file descriptor of kernel device to write to
* *
 End of changes. 10 change blocks. 
3 lines changed or deleted 79 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/