|char *||g13_device_get_name (g13_device *device)|
|Get the driver name for the device. |
|void||g13_device_free_name (char *name)|
|Frees a name string allocated by |
|int||g13_device_set_name (g13_device *device, const char *name, size_t name_len)|
|Sets the mnemonic name for a device. |
|void g13_device_free_name||(||char *||name||)|
|char* g13_device_get_name||(||g13_device *||device||)|
Get the driver name for the device.
The returned pointer must be freed using
This name is stored only in the driver and not in the device, but can be used to recognize devices mnemonically.
|int g13_device_set_name||(||g13_device *||device,|
|const char *||name,|
Sets the mnemonic name for a device.
0on success; on failure returns
|name||The new mnemonic name of the device|
|name_len||The length of the name array|
This sets a mnemonic name for a device in the device driver. The name has a limit of 100 characters. If more than 100 characters are provided only the first 100 will be used.