mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
747bb6bec7
svn path=/trunk/; revision=6146
31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<chapter id="migrating">
|
|
<title>Migrating to GIO</title>
|
|
|
|
<para>
|
|
This chapter explains how to port applications from POSIX I/O or
|
|
gnome-vfs to GIO.
|
|
</para>
|
|
|
|
<table id="posix-vs-gio">
|
|
<title>Comparison of POSIX and GIO concepts</title>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row><entry>POSIX</entry><entry>GIO</entry></row>
|
|
</thead>
|
|
<tbody>
|
|
<row><entry>char *path</entry><entry>GFile *file</entry></row>
|
|
<row><entry>struct stat *buf</entry><entry>GFileInfo *info</entry></row>
|
|
<row><entry>struct statvfs *buf</entry><entry>GFileInfo *info</entry></row>
|
|
<row><entry morerows="1">int fd</entry><entry>GInputStream *in</entry></row>
|
|
<row><entry>GOutputStream *out</entry></row>
|
|
<row><entry>DIR *</entry><entry>GFileEnumerator *enum</entry></row>
|
|
<row><entry>fstab entry</entry><entry>GUnixMountPoint *mount_point</entry></row>
|
|
<row><entry>mtab entry</entry><entry>GUnixMountEntry *mount_entry</entry></row>
|
|
</tbody>
|
|
</tgroup>
|
|
</table>
|
|
|
|
<!-- FIXME now explain ! -->
|
|
|
|
</chapter>
|