Add GWin32InputStream and GWin32OutputStream classes
authorTor Lillqvist <tml@iki.fi>
Mon, 19 Apr 2010 08:32:05 +0000 (11:32 +0300)
committerTor Lillqvist <tml@iki.fi>
Mon, 19 Apr 2010 08:54:56 +0000 (11:54 +0300)
commit9af8b8321146cddbe5bee09e972507f023e58ce0
treeb926e94cfa778ec2d195ab42f5f57cc1953557c8
parent48cd4cbba5e580a30aef7b0073e647bcc7118c67
Add GWin32InputStream and GWin32OutputStream classes

Correspond to GUnixInputStream and GUnixOutputStream. No true async
support though. But that is how the Win32 API is, for files not
explicitly opened for so-called overlapped IO.

The API to create these streams takes Win32 HANDLEs. Not file
descriptors, because file descriptors are specific to the C library
used. The user code and GLib might be using different C libraries.

Also add a test program for the new classes, and a gio-windows-2.0.pc
file.
15 files changed:
Makefile.am
build/win32/vs9/glib.vsprops
configure.in
gio-windows-2.0.pc.in [new file with mode: 0644]
gio/Makefile.am
gio/gio.symbols
gio/gioerror.c
gio/gioerror.h
gio/gwin32inputstream.c [new file with mode: 0644]
gio/gwin32inputstream.h [new file with mode: 0644]
gio/gwin32outputstream.c [new file with mode: 0644]
gio/gwin32outputstream.h [new file with mode: 0644]
gio/tests/Makefile.am
gio/tests/win32-streams.c [new file with mode: 0644]
glib-zip.in