Compare the two devices for equal-ness.
Free all memory used by the database.
Loads the Tablet and Stylus databases, to be used
in libwacom_new_*() functions.
Loads the Tablet and Stylus databases, to be used
in libwacom_new_*() functions, from the prefix
path passes. This is only useful for diagnostics
applications.
Remove the device and free all memory and references to it.
Free the error and associated memory.
Resets error to NULL.
@return The code for this error.
@return A human-readable message for this error
Allocate a new structure for error reporting.
@param device The tablet to query
@return The bustype of this device.
@param device The tablet to query
@param button The ID of the button to check for, between ‘A’ and ‘Z’
@return a WacomButtonFlags with information about the button
@param device The tablet to query
@param button The ID of the button to check for, between ‘A’ and ‘Z’
@return the status LED group id to use
or -1 if no LED is available for the given tablet / button
@param device The tablet to query
@return The class of the device
Retrieve the height of the device. This is the height of the usable area as
advertised, not the total size of the physical tablet. For e.g. an
Intuos4 6x9 this will return 6.
@param device The tablet to query
@return the integration flags for the device
@param device The tablet to query
@return The full filename including path to the SVG layout of the device
if available, or NULL otherwise
@param device The tablet to query
@return The current match string used for this device (if set) or the first
match string in the tablet definition.
@param device The tablet to query
@return A pointer to the null-terminated list of possible matches for this device. Do not
modify this pointer or any content!
@param device The tablet to query
@return The human-readable name for this device
Tablet buttons are numbered ‘A’ through to ‘A’ + number of buttons.
@param device The tablet to query
@return the number of touch strips on the tablet
otherwise
@param device The tablet to query
@return The numeric product ID for this device
@param device The tablet to query
@return the number of modes for the second touchring if it has a mode switch
@param device The tablet to query
@return the number of modes for the touchring if it has a mode switch
@param device The tablet to query
@param num_leds Return location for the number of supported status LEDs
@return an array of status LEDs supported by the device
@param device The tablet to query
@return the number of modes for each of the touchstrips if any
@param device The tablet to query
@param num_styli Return location for the number of listed styli
@return an array of Styli IDs supported by the device
@param device The tablet to query
@return The numeric vendor ID for this device
Retrieve the width of the device. This is the width of the usable area as
advertised, not the total size of the physical tablet. For e.g. an
Intuos4 6x9 this will return 9.
@param device The tablet to query
@return non-zero if the device has a touch ring or zero otherwise
@param device The tablet to query
@return non-zero if the device has a second touch ring or zero otherwise
@param device The tablet to query
@return non-zero if the device supports styli or zero otherwise
@param device The tablet to query
@return non-zero if the device supports touch or zero otherwise
@param device The tablet to query
@return non-zero if the device has a touch switch or zero otherwise
@param device The tablet to query
@return non-zero if the device is built into the screen (ie a screen tablet)
or zero if the device is an external tablet
@deprecated 0.7 Use libwacom_get_integration_flags() instead.
@param device The tablet to query
@return non-zero if the device can be used left-handed
(rotated 180 degrees)
Returns the list of devices in the given database.
Create a new device reference from the given name.
In case of error, NULL is returned and the error is set to the
appropriate value.
Create a new device reference from the given device path.
In case of error, NULL is returned and the error is set to the
appropriate value.
Create a new device reference from the given vendor/product IDs.
In case of error, NULL is returned and the error is set to the
appropriate value.
Print the description of this device to the given file.
Print the description of this stylus to the given file.
@param stylus The stylus to query
@return The flags specifying the list of absolute axes
Get the WacomStylus for the given tool ID.
@param stylus The stylus to query
@return the ID of the tool
@param stylus The stylus to query
@return The name of the stylus
@param stylus The stylus to query
@return The number of buttons on the stylus
@param stylus The stylus to query
@return The type of stylus
@param stylus The stylus to query
@return Whether the stylus has an eraser
@param stylus The stylus to query
@return Whether the stylus has a lens
@param stylus The stylus to query
@return Whether the stylus has a relative mouse wheel
@param stylus The stylus to query
@return Whether the stylus is actually an eraser