mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
Add a comment noting the initial refcount of the device and the context
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -255,6 +255,9 @@ struct ratbag_interface {
|
||||
*
|
||||
* Create a new ratbag context.
|
||||
*
|
||||
* The context is refcounted with an initial value of at least 1.
|
||||
* Use ratbag_unref() to release the context.
|
||||
*
|
||||
* @return An initialized ratbag context or NULL on error
|
||||
*/
|
||||
struct ratbag *
|
||||
@@ -319,6 +322,9 @@ ratbag_unref(struct ratbag *ratbag);
|
||||
*
|
||||
* Create a new ratbag context from the given udev device.
|
||||
*
|
||||
* The device is refcounted with an initial value of at least 1.
|
||||
* Use ratbag_device_unref() to release the device.
|
||||
*
|
||||
* @return A new device based on the udev device, or NULL in case of
|
||||
* failure.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user