summaryrefslogtreecommitdiff
path: root/src/libotutil/ot-gio-utils.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2023-05-01 14:24:29 -0400
committerColin Walters <walters@verbum.org>2023-05-02 08:42:19 -0400
commit453aed97f688c606622562145fa1f7c10096ba14 (patch)
tree8059e3887665735f14b31a44402d5d578fcdd876 /src/libotutil/ot-gio-utils.h
parenta917813bb82b6ec7083da24064439b656971748d (diff)
downloadostree-453aed97f688c606622562145fa1f7c10096ba14.tar.gz
tree-wide: Run clang-format
This is a one-time tree wide reformatting to ensure consistency going forward.
Diffstat (limited to 'src/libotutil/ot-gio-utils.h')
-rw-r--r--src/libotutil/ot-gio-utils.h42
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);