1 #ifndef SEEN_SYS_H
2 #define SEEN_SYS_H
4 /*
5 * System abstraction utility routines
6 *
7 * Authors:
8 * Jon A. Cruz <jon@joncruz.org>
9 *
10 * Copyright (C) 2004-2005 Authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include <stdio.h>
16 #include <glib/gtypes.h>
17 #include <glib/gdir.h>
18 #include <glib/gfileutils.h>
20 /*#####################
21 ## U T I L I T Y
22 #####################*/
24 namespace Inkscape {
25 namespace IO {
27 void dump_fopen_call( char const *utf8name, char const *id );
29 FILE *fopen_utf8name( char const *utf8name, char const *mode );
31 int mkdir_utf8name( char const *utf8name );
33 bool file_test( char const *utf8name, GFileTest test );
35 GDir *dir_open(gchar const *utf8name, guint flags, GError **error);
37 gchar *dir_read_utf8name(GDir *dir);
39 gchar* locale_to_utf8_fallback( const gchar *opsysstring,
40 gssize len,
41 gsize *bytes_read,
42 gsize *bytes_written,
43 GError **error );
45 gchar* sanitizeString( gchar const * str );
47 }
48 }
51 #endif // SEEN_SYS_H