evemu.h | evemu.h | |||
---|---|---|---|---|
skipping to change at line 195 | skipping to change at line 195 | |||
/** | /** | |||
* 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_get_abs_current_value() - get kernel current value of event type | ||||
* @dev: the device in use | ||||
* @code: the event type code to query | ||||
* | ||||
* Returns the current value of the specified event type. | ||||
*/ | ||||
int evemu_get_abs_current_value(const struct evemu_device *dev, int code); | ||||
/** | ||||
* evemu_set_abs_maximum() - set kernel maximum value of event type | * evemu_set_abs_maximum() - set kernel maximum value of event type | |||
* | * | |||
* @dev: the device in use | * @dev: the device in use | |||
* @code: the event type code to set | * @code: the event type code to set | |||
* @max: the maximum value to set | * @max: the maximum value to set | |||
*/ | */ | |||
void evemu_set_abs_maximum(struct evemu_device *dev, int code, int max); | 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 | |||
skipping to change at line 321 | skipping to change at line 330 | |||
* @ev: pointer to the kernel event to write | * @ev: pointer to the kernel event to write | |||
* | * | |||
* Writes the kernel event to the file. | * Writes the kernel event to the file. | |||
* | * | |||
* Returns a positive number if successful, zero or negative error | * Returns a positive number if successful, zero or negative error | |||
* otherwise. | * otherwise. | |||
*/ | */ | |||
int evemu_write_event(FILE *fp, const struct input_event *ev); | int evemu_write_event(FILE *fp, const struct input_event *ev); | |||
/** | /** | |||
* evemu_create_event() - Create a single event | ||||
* @ev: pointer to the kernel event to be filled | ||||
* @type: the event type to set | ||||
* @code: the event code to set | ||||
* @value: the event value to set | ||||
*/ | ||||
int evemu_create_event(struct input_event *ev, int type, int code, int valu | ||||
e); | ||||
/** | ||||
* evemu_read_event() - read kernel event from file | * evemu_read_event() - read kernel event from file | |||
* @fp: file pointer to read the event from | * @fp: file pointer to read the event from | |||
* @ev: pointer to the kernel event to be filled | * @ev: pointer to the kernel event to be filled | |||
* | * | |||
* Reads a kernel event from the file. | * Reads a kernel event from the file. | |||
* | * | |||
* Returns a positive number if successful, zero or negative error | * Returns a positive number if successful, zero or negative error | |||
* otherwise. | * otherwise. | |||
*/ | */ | |||
int evemu_read_event(FILE *fp, struct input_event *ev); | int evemu_read_event(FILE *fp, struct input_event *ev); | |||
skipping to change at line 364 | skipping to change at line 382 | |||
* | * | |||
* 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. | |||
* | * | |||
* 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_one() - play one event to kernel device | ||||
* @fd: file descriptor of kernel device to write to | ||||
* @ev: pointer to the kernel event to be played | ||||
*/ | ||||
int evemu_play_one(int fd, const struct input_event *ev); | ||||
/** | ||||
* 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 | |||
* | * | |||
* Contiuously reads events from the file and writes them to the | * Contiuously reads events from the file and writes them to the | |||
* kernel device, in realtime. The function terminates when end of | * kernel device, in realtime. The function terminates when end of | |||
* file has been reached. | * file has been reached. | |||
* | * | |||
* Returns zero if successful, negative error otherwise. | * Returns zero if successful, negative error otherwise. | |||
*/ | */ | |||
End of changes. 3 change blocks. | ||||
0 lines changed or deleted | 26 lines changed or added | |||