core: Add a few more GIO utility functions

This commit is contained in:
Colin Walters committed 2012-03-31 10:32:02 -04:00
1 parent 70afd6011f
commit b221b0fdd6
2 files changed
+96

No files matched your search

+11
View File
@@ -36,6 +36,8 @@ G_BEGIN_DECLS
GFileType ot_gfile_type_for_mode (guint32 mode);
GFile *ot_gfile_get_child_strconcat (GFile *parent, const char *first, ...) G_GNUC_NULL_TERMINATED;
GFile *ot_gfile_new_for_path (const char *path);
const char *ot_gfile_get_path_cached (GFile *file);
@@ -44,6 +46,15 @@ const char *ot_gfile_get_basename_cached (GFile *file);
gboolean ot_gfile_ensure_directory (GFile *dir, gboolean with_parents, GError **error);
gboolean ot_gfile_rename (GFile *src,
GFile *dest,
GCancellable *cancellable,
GError **error);
gboolean ot_gfile_unlink (GFile *path,
GCancellable *cancellable,
GError **error);
gboolean ot_gfile_load_contents_utf8 (GFile *file,
char **contents_out,
char **etag_out,