summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sepolicy.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-sepolicy.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-sepolicy.h')
-rw-r--r--src/libostree/ostree-sepolicy.h55
1 files changed, 20 insertions, 35 deletions
diff --git a/src/libostree/ostree-sepolicy.h b/src/libostree/ostree-sepolicy.h
index 3534a530..20984567 100644
--- a/src/libostree/ostree-sepolicy.h
+++ b/src/libostree/ostree-sepolicy.h
@@ -23,33 +23,26 @@
G_BEGIN_DECLS
-#define OSTREE_TYPE_SEPOLICY ostree_sepolicy_get_type()
+#define OSTREE_TYPE_SEPOLICY ostree_sepolicy_get_type ()
#define OSTREE_SEPOLICY(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), OSTREE_TYPE_SEPOLICY, OstreeSePolicy))
-#define OSTREE_IS_SEPOLICY(obj) \
- (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OSTREE_TYPE_SEPOLICY))
+#define OSTREE_IS_SEPOLICY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), OSTREE_TYPE_SEPOLICY))
_OSTREE_PUBLIC
GType ostree_sepolicy_get_type (void);
_OSTREE_PUBLIC
-OstreeSePolicy* ostree_sepolicy_new (GFile *path,
- GCancellable *cancellable,
- GError **error);
+OstreeSePolicy *ostree_sepolicy_new (GFile *path, GCancellable *cancellable, GError **error);
_OSTREE_PUBLIC
-OstreeSePolicy* ostree_sepolicy_new_at (int rootfs_dfd,
- GCancellable *cancellable,
- GError **error);
+OstreeSePolicy *ostree_sepolicy_new_at (int rootfs_dfd, GCancellable *cancellable, GError **error);
_OSTREE_PUBLIC
-OstreeSePolicy* ostree_sepolicy_new_from_commit (OstreeRepo *repo,
- const char *rev,
- GCancellable *cancellable,
- GError **error);
+OstreeSePolicy *ostree_sepolicy_new_from_commit (OstreeRepo *repo, const char *rev,
+ GCancellable *cancellable, GError **error);
_OSTREE_PUBLIC
-GFile * ostree_sepolicy_get_path (OstreeSePolicy *self);
+GFile *ostree_sepolicy_get_path (OstreeSePolicy *self);
_OSTREE_PUBLIC
const char *ostree_sepolicy_get_name (OstreeSePolicy *self);
@@ -58,38 +51,30 @@ _OSTREE_PUBLIC
const char *ostree_sepolicy_get_csum (OstreeSePolicy *self);
_OSTREE_PUBLIC
-gboolean ostree_sepolicy_get_label (OstreeSePolicy *self,
- const char *relpath,
- guint32 unix_mode,
- char **out_label,
- GCancellable *cancellable,
- GError **error);
-
-typedef enum {
+gboolean ostree_sepolicy_get_label (OstreeSePolicy *self, const char *relpath, guint32 unix_mode,
+ char **out_label, GCancellable *cancellable, GError **error);
+
+typedef enum
+{
OSTREE_SEPOLICY_RESTORECON_FLAGS_NONE,
OSTREE_SEPOLICY_RESTORECON_FLAGS_ALLOW_NOLABEL = (1 << 0),
OSTREE_SEPOLICY_RESTORECON_FLAGS_KEEP_EXISTING = (1 << 1)
} OstreeSePolicyRestoreconFlags;
_OSTREE_PUBLIC
-gboolean ostree_sepolicy_restorecon (OstreeSePolicy *self,
- const char *path,
- GFileInfo *info,
- GFile *target,
- OstreeSePolicyRestoreconFlags flags,
- char **out_new_label,
- GCancellable *cancellable,
- GError **error);
+gboolean ostree_sepolicy_restorecon (OstreeSePolicy *self, const char *path, GFileInfo *info,
+ GFile *target, OstreeSePolicyRestoreconFlags flags,
+ char **out_new_label, GCancellable *cancellable,
+ GError **error);
_OSTREE_PUBLIC
-gboolean ostree_sepolicy_setfscreatecon (OstreeSePolicy *self,
- const char *path,
- guint32 mode,
- GError **error);
+gboolean ostree_sepolicy_setfscreatecon (OstreeSePolicy *self, const char *path, guint32 mode,
+ GError **error);
_OSTREE_PUBLIC
void ostree_sepolicy_fscreatecon_cleanup (void **unused);
-#define ostree_cleanup_sepolicy_fscreatecon __attribute__ ((cleanup(ostree_sepolicy_fscreatecon_cleanup)))
+#define ostree_cleanup_sepolicy_fscreatecon \
+ __attribute__ ((cleanup (ostree_sepolicy_fscreatecon_cleanup)))
G_END_DECLS