Functions to create and manage libwacom context.
More...
Functions to create and manage libwacom context.
◆ WacomDeviceDatabase
◆ WacomError
◆ WacomErrorCode
Possible error codes.
Enumerator |
---|
WERROR_NONE | No error has occured.
|
WERROR_BAD_ALLOC | Allocation error.
|
WERROR_INVALID_PATH | A path specified is invalid.
|
WERROR_INVALID_DB | The passed DB is invalid.
|
WERROR_BAD_ACCESS | Invalid permissions to access the path.
|
WERROR_UNKNOWN_MODEL | Unsupported/unknown device.
|
WERROR_BUG_CALLER | A bug in the caller.
|
◆ libwacom_database_destroy()
Free all memory used by the database.
- Parameters
-
db | A Tablet and Stylus database. |
◆ libwacom_database_new()
Loads the Tablet and Stylus databases, to be used in libwacom_new_*() functions.
- Returns
- A new database or NULL on error.
◆ libwacom_database_new_for_path()
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.
- Returns
- A new database or NULL on error.
◆ libwacom_error_free()
Free the error and associated memory.
Resets error to NULL.
- Parameters
-
error | A reference to a error struct. |
- See also
- libwacom_error_new
◆ libwacom_error_get_code()
- Returns
- The code for this error.
◆ libwacom_error_get_message()
const char* libwacom_error_get_message |
( |
WacomError * |
error | ) |
|
- Returns
- A human-readable message for this error
◆ libwacom_error_new()
Allocate a new structure for error reporting.
- Returns
- A newly allocated error structure or NULL if the allocation failed.