diff options
author | Colin Walters <walters@verbum.org> | 2023-05-01 14:24:29 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2023-05-02 08:42:19 -0400 |
commit | 453aed97f688c606622562145fa1f7c10096ba14 (patch) | |
tree | 8059e3887665735f14b31a44402d5d578fcdd876 /src/libostree/ostree-diff.h | |
parent | a917813bb82b6ec7083da24064439b656971748d (diff) | |
download | ostree-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/libostree/ostree-diff.h')
-rw-r--r-- | src/libostree/ostree-diff.h | 44 |
1 files changed, 18 insertions, 26 deletions
diff --git a/src/libostree/ostree-diff.h b/src/libostree/ostree-diff.h index be50c638..ba77ae6f 100644 --- a/src/libostree/ostree-diff.h +++ b/src/libostree/ostree-diff.h @@ -29,7 +29,8 @@ G_BEGIN_DECLS /** * OstreeDiffFlags: */ -typedef enum { +typedef enum +{ OSTREE_DIFF_FLAGS_NONE = 0, OSTREE_DIFF_FLAGS_IGNORE_XATTRS = (1 << 0) } OstreeDiffFlags; @@ -40,7 +41,7 @@ typedef enum { typedef struct _OstreeDiffItem OstreeDiffItem; struct _OstreeDiffItem { - gint refcount; /* atomic */ + gint refcount; /* atomic */ GFile *src; GFile *target; @@ -61,14 +62,9 @@ _OSTREE_PUBLIC GType ostree_diff_item_get_type (void); _OSTREE_PUBLIC -gboolean ostree_diff_dirs (OstreeDiffFlags flags, - GFile *a, - GFile *b, - GPtrArray *modified, - GPtrArray *removed, - GPtrArray *added, - GCancellable *cancellable, - GError **error); +gboolean ostree_diff_dirs (OstreeDiffFlags flags, GFile *a, GFile *b, GPtrArray *modified, + GPtrArray *removed, GPtrArray *added, GCancellable *cancellable, + GError **error); /** * OstreeDiffDirsOptions: @@ -77,7 +73,8 @@ gboolean ostree_diff_dirs (OstreeDiffFlags flags, * that owner_uid/gid is set to -1 when not used. This is used by * ostree_diff_dirs_with_options(). */ -typedef struct { +typedef struct +{ gint owner_uid; gint owner_gid; @@ -94,24 +91,19 @@ typedef struct { * * Use this to initialize an `OstreeDiffDirsOptions` structure. */ -#define OSTREE_DIFF_DIRS_OPTIONS_INIT { .owner_uid = -1, .owner_gid = -1, } +#define OSTREE_DIFF_DIRS_OPTIONS_INIT \ + { \ + .owner_uid = -1, .owner_gid = -1, \ + } _OSTREE_PUBLIC -gboolean ostree_diff_dirs_with_options (OstreeDiffFlags flags, - GFile *a, - GFile *b, - GPtrArray *modified, - GPtrArray *removed, - GPtrArray *added, - OstreeDiffDirsOptions *options, - GCancellable *cancellable, - GError **error); +gboolean ostree_diff_dirs_with_options (OstreeDiffFlags flags, GFile *a, GFile *b, + GPtrArray *modified, GPtrArray *removed, GPtrArray *added, + OstreeDiffDirsOptions *options, GCancellable *cancellable, + GError **error); _OSTREE_PUBLIC -void ostree_diff_print (GFile *a, - GFile *b, - GPtrArray *modified, - GPtrArray *removed, - GPtrArray *added); +void ostree_diff_print (GFile *a, GFile *b, GPtrArray *modified, GPtrArray *removed, + GPtrArray *added); G_END_DECLS |