Skip to content

Commit

Permalink
added a note that gp_file_new_from_fd takes over ownership of the fil…
Browse files Browse the repository at this point in the history
…e descriptor

fixes #194
  • Loading branch information
msmeissn committed Aug 10, 2017
1 parent 0592274 commit b64dbfe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libgphoto2/gphoto2-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,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
Expand Down

0 comments on commit b64dbfe

Please sign in to comment.