summaryrefslogtreecommitdiff
path: root/libgphoto2
diff options
context:
space:
mode:
Diffstat (limited to 'libgphoto2')
-rw-r--r--libgphoto2/gphoto2-file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgphoto2/gphoto2-file.c b/libgphoto2/gphoto2-file.c
index 74068b37e..6fd48d43e 100644
--- a/libgphoto2/gphoto2-file.c
+++ b/libgphoto2/gphoto2-file.c
@@ -95,6 +95,8 @@ gp_file_new (CameraFile **file)
/*! Create new #CameraFile object from a UNIX filedescriptor.
*
+ * This function takes ownership of the filedescriptor and will close it when closing the CameraFile.
+ *
* \param file a pointer to a #CameraFile
* \param fd a UNIX filedescriptor
* \return a gphoto2 error code.