summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-sepolicy.h
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2023-05-03 08:24:21 -0400
committerGitHub <noreply@github.com>2023-05-03 08:24:21 -0400
commit8a2993a9d01cc358e4c2d936ca132174aabdc714 (patch)
tree5402001ab710dadfd51ba3e9071b044016030e3e /src/libostree/ostree-sepolicy.h
parentdd70c9b78cc34ccc7e638eda4c2df1ddd8ee3add (diff)
parentc1044a02b28982ef6dd58af98b23a40482d26487 (diff)
downloadostree-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-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