gsocket: Document FD ownership with g_socket_new_from_fd()

https://bugzilla.gnome.org/show_bug.cgi?id=730188
This commit is contained in:
Philip Withnall 2014-05-15 11:44:18 +01:00 committed by Dan Winship
parent d4e7b4cf25
commit 1b22df7822

View File

@ -1057,6 +1057,9 @@ g_socket_new (GSocketFamily family,
* will be set to non-blocking mode, independent on the blocking * will be set to non-blocking mode, independent on the blocking
* mode of the #GSocket. * mode of the #GSocket.
* *
* On success, the returned #GSocket takes ownership of @fd. On failure, the
* caller must close @fd themselves.
*
* Returns: a #GSocket or %NULL on error. * Returns: a #GSocket or %NULL on error.
* Free the returned object with g_object_unref(). * Free the returned object with g_object_unref().
* *