diff options
author | Marcus Meissner <meissner@suse.de> | 2017-08-10 11:08:52 +0200 |
---|---|---|
committer | Marcus Meissner <meissner@suse.de> | 2017-08-10 11:08:52 +0200 |
commit | b64dbfe85e30a48702567d8254ad5d8b0d92b5a9 (patch) | |
tree | af68bfae0d60c702d56d3c03fce50fc296abeabf /libgphoto2/gphoto2-file.c | |
parent | 059227468838df0baf1f6137761bbb535095b43d (diff) | |
download | libgphoto2-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/gphoto2-file.c')
-rw-r--r-- | libgphoto2/gphoto2-file.c | 2 |
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. |