mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
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:
committed by
Ryan Lortie
parent
aaddd823bc
commit
c515c3ed11
42
gio/giowin32-priv.h
Normal file
42
gio/giowin32-priv.h
Normal 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__ */
|
Reference in New Issue
Block a user