mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Add ratbag_device_ref
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -333,6 +333,13 @@ out_err:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT struct ratbag_device *
|
||||
ratbag_device_ref(struct ratbag_device *device)
|
||||
{
|
||||
device->refcount++;
|
||||
return device;
|
||||
}
|
||||
|
||||
LIBRATBAG_EXPORT struct ratbag_device *
|
||||
ratbag_device_unref(struct ratbag_device *device)
|
||||
{
|
||||
|
||||
@@ -13,6 +13,7 @@ global:
|
||||
ratbag_device_get_profile_by_index;
|
||||
ratbag_device_has_capability;
|
||||
ratbag_device_new_from_udev_device;
|
||||
ratbag_device_ref;
|
||||
ratbag_device_set_active_profile;
|
||||
ratbag_log_get_priority;
|
||||
ratbag_log_set_handler;
|
||||
|
||||
Reference in New Issue
Block a user