|
libwacom
Wacom model identification library
|
Functions to create and manage libwacom context. More...
Typedefs | |
| typedef struct _WacomError | WacomError |
| typedef struct _WacomDeviceDatabase | WacomDeviceDatabase |
Enumerations | |
| enum | WacomErrorCode { WERROR_NONE , WERROR_BAD_ALLOC , WERROR_INVALID_PATH , WERROR_INVALID_DB , WERROR_BAD_ACCESS , WERROR_UNKNOWN_MODEL , WERROR_BUG_CALLER } |
| Possible error codes. More... | |
Functions | |
| WacomError * | libwacom_error_new (void) |
| Allocate a new structure for error reporting. | |
| void | libwacom_error_free (WacomError **error) |
| Free the error and associated memory. | |
| enum WacomErrorCode | libwacom_error_get_code (WacomError *error) |
| const char * | libwacom_error_get_message (WacomError *error) |
| WacomDeviceDatabase * | libwacom_database_new (void) |
| Loads the Tablet and Stylus databases, to be used in libwacom_new_*() functions. | |
| WacomDeviceDatabase * | libwacom_database_new_for_path (const char *datadir) |
| Loads the Tablet and Stylus databases, to be used in libwacom_new_*() functions, from the datadir given in the argument. | |
| void | libwacom_database_destroy (WacomDeviceDatabase *db) |
| Free all memory used by the database. | |
Functions to create and manage libwacom context.
| typedef struct _WacomDeviceDatabase WacomDeviceDatabase |
| typedef struct _WacomError WacomError |
| enum WacomErrorCode |
Possible error codes.
| void libwacom_database_destroy | ( | WacomDeviceDatabase * | db | ) |
Free all memory used by the database.
| db | A Tablet and Stylus database. |
| WacomDeviceDatabase * libwacom_database_new | ( | void | ) |
Loads the Tablet and Stylus databases, to be used in libwacom_new_*() functions.
| WacomDeviceDatabase * libwacom_database_new_for_path | ( | const char * | datadir | ) |
Loads the Tablet and Stylus databases, to be used in libwacom_new_*() functions, from the datadir given in the argument.
This is only useful for diagnostics applications.
The datadir must contain the libwacom .tablet files and optionally a layouts/ subdirectory for the svg files if any of the .tablet files references an svg.
datadir may be a colon-separated list of directories.
| void libwacom_error_free | ( | WacomError ** | error | ) |
Free the error and associated memory.
Resets error to NULL.
| error | A reference to a error struct. |
| enum WacomErrorCode libwacom_error_get_code | ( | WacomError * | error | ) |
| const char * libwacom_error_get_message | ( | WacomError * | error | ) |
| WacomError * libwacom_error_new | ( | void | ) |
Allocate a new structure for error reporting.