diff options
Diffstat (limited to 'src/libotutil/ot-gio-utils.h')
-rw-r--r-- | src/libotutil/ot-gio-utils.h | 42 |
1 files changed, 14 insertions, 28 deletions
diff --git a/src/libotutil/ot-gio-utils.h b/src/libotutil/ot-gio-utils.h index 27c1d2d9..99287137 100644 --- a/src/libotutil/ot-gio-utils.h +++ b/src/libotutil/ot-gio-utils.h @@ -29,49 +29,35 @@ G_BEGIN_DECLS * readlink(). Other things require opening the file, or also * stat()ing the parent directory. */ -#define OSTREE_GIO_FAST_QUERYINFO ("standard::name,standard::type,standard::size,standard::is-symlink,standard::symlink-target," \ - "unix::device,unix::inode,unix::mode,unix::uid,unix::gid,unix::rdev") +#define OSTREE_GIO_FAST_QUERYINFO \ + ("standard::name,standard::type,standard::size,standard::is-symlink,standard::symlink-target," \ + "unix::device,unix::inode,unix::mode,unix::uid,unix::gid,unix::rdev") -GFile * ot_gfile_resolve_path_printf (GFile *path, - const char *format, - ...) G_GNUC_PRINTF(2, 3); +GFile *ot_gfile_resolve_path_printf (GFile *path, const char *format, ...) G_GNUC_PRINTF (2, 3); -gboolean ot_gfile_replace_contents_fsync (GFile *path, - GBytes *contents, - GCancellable *cancellable, - GError **error); +gboolean ot_gfile_replace_contents_fsync (GFile *path, GBytes *contents, GCancellable *cancellable, + GError **error); -gboolean ot_gfile_ensure_unlinked (GFile *path, - GCancellable *cancellable, - GError **error); +gboolean ot_gfile_ensure_unlinked (GFile *path, GCancellable *cancellable, GError **error); #if !GLIB_CHECK_VERSION(2, 44, 0) -gboolean -ot_file_enumerator_iterate (GFileEnumerator *direnum, - GFileInfo **out_info, - GFile **out_child, - GCancellable *cancellable, - GError **error); +gboolean ot_file_enumerator_iterate (GFileEnumerator *direnum, GFileInfo **out_info, + GFile **out_child, GCancellable *cancellable, GError **error); #else static inline gboolean -ot_file_enumerator_iterate (GFileEnumerator *direnum, - GFileInfo **out_info, - GFile **out_child, - GCancellable *cancellable, - GError **error) +ot_file_enumerator_iterate (GFileEnumerator *direnum, GFileInfo **out_info, GFile **out_child, + GCancellable *cancellable, GError **error) { G_GNUC_BEGIN_IGNORE_DEPRECATIONS; - return (g_file_enumerator_iterate) (direnum, out_info, out_child, cancellable, error); + return (g_file_enumerator_iterate)(direnum, out_info, out_child, cancellable, error); G_GNUC_END_IGNORE_DEPRECATIONS; } #endif #define g_file_enumerator_iterate ot_file_enumerator_iterate -const char * -ot_file_get_path_cached (GFile *file); +const char *ot_file_get_path_cached (GFile *file); -static inline -const char * +static inline const char * gs_file_get_path_cached (GFile *file) { return ot_file_get_path_cached (file); |