From 0ca6cfb67bc17d5ed0e2b7af890ae229fea167cb Mon Sep 17 00:00:00 2001 From: Jussi Laako Date: Mon, 9 Jun 2014 15:46:03 +0300 Subject: [PATCH] utils: publish utility functions, especially useful for writing bindings to other languages --- libgsignon-glib/Makefile.am | 1 + libgsignon-glib/signon-utils.c | 2 +- libgsignon-glib/signon-utils.h | 5 +---- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libgsignon-glib/Makefile.am b/libgsignon-glib/Makefile.am index b27d525..f70eb21 100644 --- a/libgsignon-glib/Makefile.am +++ b/libgsignon-glib/Makefile.am @@ -70,6 +70,7 @@ libgsignon_glib_include_HEADERS = \ signon-enum-types.h \ signon-glib.h \ signon-types.h \ + signon-utils.h \ $(signon_headers) # Headers with enums to be parsed with glib-mkenums; diff --git a/libgsignon-glib/signon-utils.c b/libgsignon-glib/signon-utils.c index 208243b..c7fe5e2 100644 --- a/libgsignon-glib/signon-utils.c +++ b/libgsignon-glib/signon-utils.c @@ -26,7 +26,7 @@ #include "signon-utils.h" #include -static const GVariantType * +const GVariantType * signon_gtype_to_variant_type (GType type) { switch (type) diff --git a/libgsignon-glib/signon-utils.h b/libgsignon-glib/signon-utils.h index 3ac03b0..dec722c 100644 --- a/libgsignon-glib/signon-utils.h +++ b/libgsignon-glib/signon-utils.h @@ -33,14 +33,11 @@ error->domain != G_IO_ERROR || \ error->code != G_IO_ERROR_CANCELLED) -G_GNUC_INTERNAL +const GVariantType *signon_gtype_to_variant_type (GType type); GValue *signon_gvalue_new (GType type); -G_GNUC_INTERNAL void signon_gvalue_free (gpointer val); -G_GNUC_INTERNAL GHashTable *signon_hash_table_from_variant (GVariant *variant); -G_GNUC_INTERNAL GVariant *signon_hash_table_to_variant (GHashTable *hash_table); #endif //_SIGNON_UTILS_H_ -- 2.34.1