summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sysroot-upgrader.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/libostree/ostree-sysroot-upgrader.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/libostree/ostree-sysroot-upgrader.h')
-rw-r--r--src/libostree/ostree-sysroot-upgrader.h67
1 files changed, 30 insertions, 37 deletions
diff --git a/src/libostree/ostree-sysroot-upgrader.h b/src/libostree/ostree-sysroot-upgrader.h
index b214157f..5d1e8c2a 100644
--- a/src/libostree/ostree-sysroot-upgrader.h
+++ b/src/libostree/ostree-sysroot-upgrader.h
@@ -23,7 +23,7 @@
G_BEGIN_DECLS
-#define OSTREE_TYPE_SYSROOT_UPGRADER ostree_sysroot_upgrader_get_type()
+#define OSTREE_TYPE_SYSROOT_UPGRADER ostree_sysroot_upgrader_get_type ()
#define OSTREE_SYSROOT_UPGRADER(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), OSTREE_TYPE_SYSROOT_UPGRADER, OstreeSysrootUpgrader))
#define OSTREE_IS_SYSROOT_UPGRADER(obj) \
@@ -32,13 +32,15 @@ G_BEGIN_DECLS
/**
* OstreeSysrootUpgraderFlags:
* @OSTREE_SYSROOT_UPGRADER_FLAGS_NONE: No options
- * @OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED: Do not error if the origin has an unconfigured-state key
+ * @OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED: Do not error if the origin has an
+ * unconfigured-state key
* @OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE: Enable "staging" (finalization at shutdown); recommended
* (Since: 2021.4)
*
* Flags controlling operation of an #OstreeSysrootUpgrader.
*/
-typedef enum {
+typedef enum
+{
OSTREE_SYSROOT_UPGRADER_FLAGS_NONE = (1 << 0),
OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED = (1 << 1),
OSTREE_SYSROOT_UPGRADER_FLAGS_STAGE = (1 << 2),
@@ -52,21 +54,19 @@ GType ostree_sysroot_upgrader_flags_get_type (void);
_OSTREE_PUBLIC
OstreeSysrootUpgrader *ostree_sysroot_upgrader_new (OstreeSysroot *sysroot,
- GCancellable *cancellable,
- GError **error);
+ GCancellable *cancellable, GError **error);
_OSTREE_PUBLIC
OstreeSysrootUpgrader *ostree_sysroot_upgrader_new_for_os (OstreeSysroot *sysroot,
- const char *osname,
- GCancellable *cancellable,
- GError **error);
+ const char *osname,
+ GCancellable *cancellable,
+ GError **error);
_OSTREE_PUBLIC
-OstreeSysrootUpgrader *ostree_sysroot_upgrader_new_for_os_with_flags (OstreeSysroot *sysroot,
- const char *osname,
- OstreeSysrootUpgraderFlags flags,
- GCancellable *cancellable,
- GError **error);
+OstreeSysrootUpgrader *
+ostree_sysroot_upgrader_new_for_os_with_flags (OstreeSysroot *sysroot, const char *osname,
+ OstreeSysrootUpgraderFlags flags,
+ GCancellable *cancellable, GError **error);
_OSTREE_PUBLIC
GKeyFile *ostree_sysroot_upgrader_get_origin (OstreeSysrootUpgrader *self);
@@ -80,39 +80,32 @@ _OSTREE_PUBLIC
char *ostree_sysroot_upgrader_get_origin_description (OstreeSysrootUpgrader *self);
_OSTREE_PUBLIC
-gboolean ostree_sysroot_upgrader_check_timestamps (OstreeRepo *repo,
- const char *from_rev,
- const char *to_rev,
- GError **error);
+gboolean ostree_sysroot_upgrader_check_timestamps (OstreeRepo *repo, const char *from_rev,
+ const char *to_rev, GError **error);
-typedef enum {
+typedef enum
+{
OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_NONE = 0,
OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_ALLOW_OLDER = (1 << 0),
- OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC = (1 << 1) /* Don't actually do a pull, just check timestamps/changed */
+ OSTREE_SYSROOT_UPGRADER_PULL_FLAGS_SYNTHETIC
+ = (1 << 1) /* Don't actually do a pull, just check timestamps/changed */
} OstreeSysrootUpgraderPullFlags;
_OSTREE_PUBLIC
-gboolean ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self,
- OstreeRepoPullFlags flags,
- OstreeSysrootUpgraderPullFlags upgrader_flags,
- OstreeAsyncProgress *progress,
- gboolean *out_changed,
- GCancellable *cancellable,
- GError **error);
+gboolean ostree_sysroot_upgrader_pull (OstreeSysrootUpgrader *self, OstreeRepoPullFlags flags,
+ OstreeSysrootUpgraderPullFlags upgrader_flags,
+ OstreeAsyncProgress *progress, gboolean *out_changed,
+ GCancellable *cancellable, GError **error);
_OSTREE_PUBLIC
-gboolean ostree_sysroot_upgrader_pull_one_dir (OstreeSysrootUpgrader *self,
- const char *dir_to_pull,
- OstreeRepoPullFlags flags,
- OstreeSysrootUpgraderPullFlags upgrader_flags,
- OstreeAsyncProgress *progress,
- gboolean *out_changed,
- GCancellable *cancellable,
- GError **error);
+gboolean ostree_sysroot_upgrader_pull_one_dir (OstreeSysrootUpgrader *self, const char *dir_to_pull,
+ OstreeRepoPullFlags flags,
+ OstreeSysrootUpgraderPullFlags upgrader_flags,
+ OstreeAsyncProgress *progress, gboolean *out_changed,
+ GCancellable *cancellable, GError **error);
_OSTREE_PUBLIC
-gboolean ostree_sysroot_upgrader_deploy (OstreeSysrootUpgrader *self,
- GCancellable *cancellable,
- GError **error);
+gboolean ostree_sysroot_upgrader_deploy (OstreeSysrootUpgrader *self, GCancellable *cancellable,
+ GError **error);
G_END_DECLS