1
0
forked from drath/libratbag

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:
Peter Hutterer
2015-09-07 09:42:54 +10:00
parent 7b2a43f17c
commit 9f6a12fc48

View File

@@ -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.
*/