diff options
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 - |