gio: Add private API to create win32 streams from fds

This will be used by GSubprocess.

https://bugzilla.gnome.org/show_bug.cgi?id=672102
This commit is contained in:
Colin Walters
2012-05-22 16:06:10 -04:00
committed by Ryan Lortie
parent aaddd823bc
commit c515c3ed11
4 changed files with 117 additions and 20 deletions

42
gio/giowin32-priv.h Normal file
View File

@@ -0,0 +1,42 @@
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2012 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*
* Author: Colin Walters <walters@verbum.org>
*/
#ifndef __G_IO_WIN32_PRIV_H__
#define __G_IO_WIN32_PRIV_H__
#include "gwin32inputstream.h"
#include "gwin32outputstream.h"
G_BEGIN_DECLS
G_GNUC_INTERNAL
GInputStream *
g_win32_input_stream_new_from_fd (gint fd,
gboolean close_fd);
GOutputStream *
g_win32_output_stream_new_from_fd (gint fd,
gboolean close_fd);
G_END_DECLS
#endif /* __G_IO_MODULE_PRIV_H__ */