diff options
author | Colin Walters <walters@verbum.org> | 2023-05-03 08:24:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 08:24:21 -0400 |
commit | 8a2993a9d01cc358e4c2d936ca132174aabdc714 (patch) | |
tree | 5402001ab710dadfd51ba3e9071b044016030e3e /src/libostree/ostree-repo-file-enumerator.c | |
parent | dd70c9b78cc34ccc7e638eda4c2df1ddd8ee3add (diff) | |
parent | c1044a02b28982ef6dd58af98b23a40482d26487 (diff) | |
download | ostree-8a2993a9d01cc358e4c2d936ca132174aabdc714.tar.gz |
Merge pull request #2565 from cgwalters/clang-format
Add .clang-format file + tree-wide: Run `clang-format`
Diffstat (limited to 'src/libostree/ostree-repo-file-enumerator.c')
-rw-r--r-- | src/libostree/ostree-repo-file-enumerator.c | 39 |
1 files changed, 14 insertions, 25 deletions
diff --git a/src/libostree/ostree-repo-file-enumerator.c b/src/libostree/ostree-repo-file-enumerator.c index 502fe6c4..35dd7638 100644 --- a/src/libostree/ostree-repo-file-enumerator.c +++ b/src/libostree/ostree-repo-file-enumerator.c @@ -38,13 +38,10 @@ struct _OstreeRepoFileEnumerator #define ostree_repo_file_enumerator_get_type _ostree_repo_file_enumerator_get_type G_DEFINE_TYPE (OstreeRepoFileEnumerator, ostree_repo_file_enumerator, G_TYPE_FILE_ENUMERATOR); -static GFileInfo *ostree_repo_file_enumerator_next_file (GFileEnumerator *enumerator, - GCancellable *cancellable, - GError **error); -static gboolean ostree_repo_file_enumerator_close (GFileEnumerator *enumerator, - GCancellable *cancellable, - GError **error); - +static GFileInfo *ostree_repo_file_enumerator_next_file (GFileEnumerator *enumerator, + GCancellable *cancellable, GError **error); +static gboolean ostree_repo_file_enumerator_close (GFileEnumerator *enumerator, + GCancellable *cancellable, GError **error); static void ostree_repo_file_enumerator_dispose (GObject *object) @@ -71,7 +68,6 @@ ostree_repo_file_enumerator_finalize (GObject *object) G_OBJECT_CLASS (ostree_repo_file_enumerator_parent_class)->finalize (object); } - static void ostree_repo_file_enumerator_class_init (OstreeRepoFileEnumeratorClass *klass) { @@ -91,17 +87,13 @@ ostree_repo_file_enumerator_init (OstreeRepoFileEnumerator *self) } GFileEnumerator * -_ostree_repo_file_enumerator_new (OstreeRepoFile *dir, - const char *attributes, - GFileQueryInfoFlags flags, - GCancellable *cancellable, - GError **error) +_ostree_repo_file_enumerator_new (OstreeRepoFile *dir, const char *attributes, + GFileQueryInfoFlags flags, GCancellable *cancellable, + GError **error) { OstreeRepoFileEnumerator *self; - self = g_object_new (OSTREE_TYPE_REPO_FILE_ENUMERATOR, - "container", dir, - NULL); + self = g_object_new (OSTREE_TYPE_REPO_FILE_ENUMERATOR, "container", dir, NULL); self->dir = g_object_ref (dir); self->attributes = g_strdup (attributes); @@ -111,32 +103,29 @@ _ostree_repo_file_enumerator_new (OstreeRepoFile *dir, } static GFileInfo * -ostree_repo_file_enumerator_next_file (GFileEnumerator *enumerator, - GCancellable *cancellable, - GError **error) +ostree_repo_file_enumerator_next_file (GFileEnumerator *enumerator, GCancellable *cancellable, + GError **error) { OstreeRepoFileEnumerator *self = OSTREE_REPO_FILE_ENUMERATOR (enumerator); gboolean ret = FALSE; GFileInfo *info = NULL; - if (!ostree_repo_file_tree_query_child (self->dir, self->index, - self->attributes, self->flags, + if (!ostree_repo_file_tree_query_child (self->dir, self->index, self->attributes, self->flags, &info, cancellable, error)) goto out; self->index++; ret = TRUE; - out: +out: if (!ret) g_clear_object (&info); return info; } static gboolean -ostree_repo_file_enumerator_close (GFileEnumerator *enumerator, - GCancellable *cancellable, - GError **error) +ostree_repo_file_enumerator_close (GFileEnumerator *enumerator, GCancellable *cancellable, + GError **error) { return TRUE; } |