diff options
author | Henrik Rydberg <rydberg@bitmath.org> | 2011-04-19 11:30:19 +0200 |
---|---|---|
committer | Henrik Rydberg <rydberg@bitmath.org> | 2011-04-19 11:30:19 +0200 |
commit | 3c6f6f8f62c8fa0a6df902fc7f54f006248d21da (patch) | |
tree | 27758e7ec13af9129246c9e625bdb97ba7b417bc /include | |
parent | cb2fa51d091e90172a02a23bb06bbbe7e2ab9a4c (diff) |
Add getters and setters for main fields.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'include')
-rw-r--r-- | include/evemu.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/include/evemu.h b/include/evemu.h index 1f55d5c..2c53138 100644 --- a/include/evemu.h +++ b/include/evemu.h @@ -106,6 +106,14 @@ void evemu_set_name(struct evemu_device *dev, const char *name); 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 * @dev: the device in use * @@ -114,6 +122,14 @@ unsigned int evemu_get_id_bustype(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 * @dev: the device in use * @@ -122,6 +138,14 @@ unsigned int evemu_get_id_vendor(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 * @dev: the device in use * @@ -130,6 +154,14 @@ unsigned int evemu_get_id_product(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 * @dev: the device in use * @code: the event type code to query @@ -139,6 +171,15 @@ unsigned int evemu_get_id_version(const struct evemu_device *dev); 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 * @dev: the device in use * @code: the event type code to query @@ -148,6 +189,15 @@ int evemu_get_abs_minimum(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 * @dev: the device in use * @code: the event type code to query @@ -157,6 +207,15 @@ int evemu_get_abs_maximum(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 * @dev: the device in use * @code: the event type code to query @@ -167,6 +226,15 @@ int evemu_get_abs_fuzz(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 * @dev: the device in use * @code: the event type code to query @@ -178,6 +246,17 @@ int evemu_get_abs_flat(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 * @dev: the device in use * @code: the property type code to query |