[libsoup/wip/nacho/soup-extern: 4/4] Fix methods that are not exported



commit 3da876fcf6daa6e68058e89dda4512f75282c5c7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Tue Oct 27 09:12:21 2015 +0100

    Fix methods that are not exported

 Makefile.glib          |    4 ++--
 libsoup/soup-session.h |    1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.glib b/Makefile.glib
index c28c983..b77c60c 100644
--- a/Makefile.glib
+++ b/Makefile.glib
@@ -205,8 +205,8 @@ $(1).h.stamp: $(_glib_enum_types_h_sources) Makefile
                --fhead "/* Generated by glib-mkenums. Do not edit */\n\n#ifndef 
$(_glib_enum_types_guard)\n#define $(_glib_enum_types_guard)\n\n" \
                $$(GLIB_MKENUMS_H_FLAGS) \
                $$($(_glib_enum_types_prefix)_MKENUMS_H_FLAGS) \
-               --fhead "#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
-               --vhead "GType @enum_name _get_type (void) G_GNUC_CONST;\n#define @ENUMPREFIX 
_TYPE_@ENUMSHORT@ (@enum_name _get_type ())\n" \
+               --fhead "#include <glib-object.h>\n#include <libsoup/soup-types.h>\n\nG_BEGIN_DECLS\n" \
+               --vhead "SOUP_AVAILABLE_IN_2_4 GType @enum_name _get_type (void) G_GNUC_CONST;\n#define 
@ENUMPREFIX _TYPE_@ENUMSHORT@ (@enum_name _get_type ())\n" \
                --ftail "G_END_DECLS\n\n#endif /* $(_glib_enum_types_guard) */" \
                $$(filter-out Makefile, $$^) > $(1).h.tmp && \
        (cmp -s $(1).h.tmp $(1).h || cp $(1).h.tmp $(1).h) && \
diff --git a/libsoup/soup-session.h b/libsoup/soup-session.h
index 3fa4f3f..ebfbb71 100644
--- a/libsoup/soup-session.h
+++ b/libsoup/soup-session.h
@@ -59,6 +59,7 @@ typedef struct {
        void (*_libsoup_reserved4) (void);
 } SoupSessionClass;
 
+SOUP_AVAILABLE_IN_2_42
 GType soup_session_get_type (void);
 
 #define SOUP_SESSION_LOCAL_ADDRESS          "local-address"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]