diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-07-04 18:18:32 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-08-15 09:45:41 +0800 |
commit | 94380459c1e33c0f47a7f21a3608d7966aaf9208 (patch) | |
tree | bb539aaae0e903289c62a3407d79b140d33e0f94 /girepository/gifunctioninfo.h | |
parent | 4bfe7f1da88c6bd73cc51666a13840661ab9edb1 (diff) | |
download | gobject-introspection-94380459c1e33c0f47a7f21a3608d7966aaf9208.tar.gz |
girepository: Add Header for Version Macros
This adds a header to the girepository library, which is then included
either directly or indirectly by the other headers so that all the public
symbols (and the 2 symbols in gitypelib-internal.h used by the tools) are
decorated by a macro, that can later be used to export the symbols and also
to be used to display compile-time warnings for usage of deprecated APIs,
which is like what is now being done in GLib (and GTK+, Clutter, and so
on).
This marks the first step that we begin to stop depending on the .symbols/
.def files to export the symbols.
https://bugzilla.gnome.org/show_bug.cgi?id=732669
Diffstat (limited to 'girepository/gifunctioninfo.h')
-rw-r--r-- | girepository/gifunctioninfo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/girepository/gifunctioninfo.h b/girepository/gifunctioninfo.h index 7987c926..e82eec69 100644 --- a/girepository/gifunctioninfo.h +++ b/girepository/gifunctioninfo.h @@ -40,9 +40,17 @@ G_BEGIN_DECLS #define GI_IS_FUNCTION_INFO(info) \ (g_base_info_get_type((GIBaseInfo*)info) == GI_INFO_TYPE_FUNCTION) + +GI_AVAILABLE_IN_ALL const gchar * g_function_info_get_symbol (GIFunctionInfo *info); + +GI_AVAILABLE_IN_ALL GIFunctionInfoFlags g_function_info_get_flags (GIFunctionInfo *info); + +GI_AVAILABLE_IN_ALL GIPropertyInfo * g_function_info_get_property (GIFunctionInfo *info); + +GI_AVAILABLE_IN_ALL GIVFuncInfo * g_function_info_get_vfunc (GIFunctionInfo *info); /** @@ -51,6 +59,8 @@ GIVFuncInfo * g_function_info_get_vfunc (GIFunctionInfo *info); * TODO */ #define G_INVOKE_ERROR (g_invoke_error_quark ()) + +GI_AVAILABLE_IN_ALL GQuark g_invoke_error_quark (void); /** @@ -72,6 +82,8 @@ typedef enum G_INVOKE_ERROR_ARGUMENT_MISMATCH } GInvokeError; + +GI_AVAILABLE_IN_ALL gboolean g_function_info_invoke (GIFunctionInfo *info, const GIArgument *in_args, int n_in_args, |