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-sign-ed25519.h | |
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-sign-ed25519.h')
-rw-r--r-- | src/libostree/ostree-sign-ed25519.h | 59 |
1 files changed, 27 insertions, 32 deletions
diff --git a/src/libostree/ostree-sign-ed25519.h b/src/libostree/ostree-sign-ed25519.h index ec5271d7..e8c3df2a 100644 --- a/src/libostree/ostree-sign-ed25519.h +++ b/src/libostree/ostree-sign-ed25519.h @@ -34,10 +34,21 @@ GType _ostree_sign_ed25519_get_type (void); G_GNUC_BEGIN_IGNORE_DEPRECATIONS typedef struct _OstreeSignEd25519 OstreeSignEd25519; -typedef struct { GObjectClass parent_class; } OstreeSignEd25519Class; - -static inline OstreeSignEd25519 *OSTREE_SIGN_ED25519 (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, _ostree_sign_ed25519_get_type (), OstreeSignEd25519); } -static inline gboolean OSTREE_IS_SIGN_ED25519 (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, _ostree_sign_ed25519_get_type ()); } +typedef struct +{ + GObjectClass parent_class; +} OstreeSignEd25519Class; + +static inline OstreeSignEd25519 * +OSTREE_SIGN_ED25519 (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_CAST (ptr, _ostree_sign_ed25519_get_type (), OstreeSignEd25519); +} +static inline gboolean +OSTREE_IS_SIGN_ED25519 (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_TYPE (ptr, _ostree_sign_ed25519_get_type ()); +} G_GNUC_END_IGNORE_DEPRECATIONS @@ -50,40 +61,24 @@ G_DECLARE_FINAL_TYPE (OstreeSignEd25519, GObject) */ -gboolean ostree_sign_ed25519_data (OstreeSign *self, - GBytes *data, - GBytes **signature, - GCancellable *cancellable, - GError **error); +gboolean ostree_sign_ed25519_data (OstreeSign *self, GBytes *data, GBytes **signature, + GCancellable *cancellable, GError **error); -gboolean ostree_sign_ed25519_data_verify (OstreeSign *self, - GBytes *data, - GVariant *signatures, - char **out_success_message, - GError **error); +gboolean ostree_sign_ed25519_data_verify (OstreeSign *self, GBytes *data, GVariant *signatures, + char **out_success_message, GError **error); -const gchar * ostree_sign_ed25519_get_name (OstreeSign *self); -const gchar * ostree_sign_ed25519_metadata_key (OstreeSign *self); -const gchar * ostree_sign_ed25519_metadata_format (OstreeSign *self); +const gchar *ostree_sign_ed25519_get_name (OstreeSign *self); +const gchar *ostree_sign_ed25519_metadata_key (OstreeSign *self); +const gchar *ostree_sign_ed25519_metadata_format (OstreeSign *self); -gboolean ostree_sign_ed25519_clear_keys (OstreeSign *self, - GError **error); +gboolean ostree_sign_ed25519_clear_keys (OstreeSign *self, GError **error); -gboolean ostree_sign_ed25519_set_sk (OstreeSign *self, - GVariant *secret_key, - GError **error); +gboolean ostree_sign_ed25519_set_sk (OstreeSign *self, GVariant *secret_key, GError **error); -gboolean ostree_sign_ed25519_set_pk (OstreeSign *self, - GVariant *public_key, - GError **error); +gboolean ostree_sign_ed25519_set_pk (OstreeSign *self, GVariant *public_key, GError **error); -gboolean ostree_sign_ed25519_add_pk (OstreeSign *self, - GVariant *public_key, - GError **error); +gboolean ostree_sign_ed25519_add_pk (OstreeSign *self, GVariant *public_key, GError **error); -gboolean ostree_sign_ed25519_load_pk (OstreeSign *self, - GVariant *options, - GError **error); +gboolean ostree_sign_ed25519_load_pk (OstreeSign *self, GVariant *options, GError **error); G_END_DECLS - |