diff options
author | Denis Pynkin <denis.pynkin@collabora.com> | 2019-11-19 02:44:16 +0300 |
---|---|---|
committer | Denis Pynkin <denis.pynkin@collabora.com> | 2020-03-25 15:23:54 +0300 |
commit | 485ff7335faf8afb9b4a47eca71cbae10ccd75aa (patch) | |
tree | f6bdd5707ed112d6e2f2786015f3ce7a59b195a6 /src/libostree/ostree-sign-ed25519.h | |
parent | fbd2666e076c1cf4bd0a1b13c888b21094b1f97f (diff) | |
download | ostree-485ff7335faf8afb9b4a47eca71cbae10ccd75aa.tar.gz |
lib/sign: allow to build with glib version less than 2.44
Ubuntu 14.04 uses glib-2.40 which have no some shiny macroses
for interface declaration.
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Diffstat (limited to 'src/libostree/ostree-sign-ed25519.h')
-rw-r--r-- | src/libostree/ostree-sign-ed25519.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/libostree/ostree-sign-ed25519.h b/src/libostree/ostree-sign-ed25519.h index bced1cdf..6e5dd665 100644 --- a/src/libostree/ostree-sign-ed25519.h +++ b/src/libostree/ostree-sign-ed25519.h @@ -33,12 +33,25 @@ G_BEGIN_DECLS #define OSTREE_TYPE_SIGN_ED25519 (ostree_sign_ed25519_get_type ()) _OSTREE_PUBLIC +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 ()); } + +G_GNUC_END_IGNORE_DEPRECATIONS + +/* Have to use glib-2.44 for this +_OSTREE_PUBLIC G_DECLARE_FINAL_TYPE (OstreeSignEd25519, ostree_sign_ed25519, OSTREE, SIGN_ED25519, GObject) - +*/ gboolean ostree_sign_ed25519_data (OstreeSign *self, GBytes *data, |