Define a public documented type for the struct stat used by g_stat()
authorTor Lillqvist <tml@iki.fi>
Sun, 21 Mar 2010 18:04:18 +0000 (20:04 +0200)
committerTor Lillqvist <tml@iki.fi>
Tue, 30 Mar 2010 16:22:39 +0000 (19:22 +0300)
commit1229281d95802c4c190284c7d331f67194a2553e
treef4f3b00a31efa65c05120ce80f831f2e48a06133
parente7763678b56e3be073cc55d707a6e92fc2055ee0
Define a public documented type for the struct stat used by g_stat()

Define GStatBuf as the type used by g_stat() and g_lstat(). Replaces
the non-public struct tag _g_stat_struct. Mostly relevant for Windows
where there are several variants of stat-style structs. On POSIX, is
just another name for struct stat.

Actually, also on many POSIX systems there are in fact several
variants of struct stat and corresponding stat() and lstat()
functions, but as g_stat and g_lstat are normally on POSIX just macros
that expand to stat and lstat, this should not cause a problem. It's
only when it's the actual g_stat() or g_lstat() implementation inside
GLib that gets called that one needs to be sure the passed struct is
the same as what GLib expects.)
gio/giomodule.c
gio/glocalfile.c
gio/glocalfileinfo.c
glib/gstdio.c
glib/gstdio.h