summaryrefslogtreecommitdiff
path: root/libgphoto2
diff options
context:
space:
mode:
authorMarcus Meissner <meissner@suse.de>2017-08-10 11:08:52 +0200
committerMarcus Meissner <meissner@suse.de>2017-08-10 11:08:52 +0200
commitb64dbfe85e30a48702567d8254ad5d8b0d92b5a9 (patch)
treeaf68bfae0d60c702d56d3c03fce50fc296abeabf /libgphoto2
parent059227468838df0baf1f6137761bbb535095b43d (diff)
downloadlibgphoto2-b64dbfe85e30a48702567d8254ad5d8b0d92b5a9.tar.gz
added a note that gp_file_new_from_fd takes over ownership of the file descriptor
fixes https://github.com/gphoto/libgphoto2/issues/194
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.