gmain: Add g_steal_fd() to API

This is basically glnx_steal_fd() from libglnx. We already had two
private implementations of it in GLib.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2021-03-22 11:48:10 +00:00
committed by Philip Withnall
parent 46c34ea20f
commit 6c5a227bcc
6 changed files with 69 additions and 23 deletions

View File

@@ -924,6 +924,9 @@ g_source_remove_by_user_data
GClearHandleFunc
g_clear_handle_id
<SUBSECTION>
g_steal_fd
<SUBSECTION Private>
GLIB_HAVE_ALLOCA_H
alloca