summaryrefslogtreecommitdiff
path: root/girepository/girffi.h
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-07-04 18:18:32 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-08-15 09:45:41 +0800
commit94380459c1e33c0f47a7f21a3608d7966aaf9208 (patch)
treebb539aaae0e903289c62a3407d79b140d33e0f94 /girepository/girffi.h
parent4bfe7f1da88c6bd73cc51666a13840661ab9edb1 (diff)
downloadgobject-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/girffi.h')
-rw-r--r--girepository/girffi.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/girepository/girffi.h b/girepository/girffi.h
index 50cabb17..d8a57369 100644
--- a/girepository/girffi.h
+++ b/girepository/girffi.h
@@ -64,30 +64,38 @@ struct _GIFunctionInvoker {
*/
typedef GIArgument GIFFIReturnValue;
+GI_AVAILABLE_IN_ALL
ffi_type * gi_type_tag_get_ffi_type (GITypeTag type_tag, gboolean is_pointer);
+GI_AVAILABLE_IN_ALL
ffi_type * g_type_info_get_ffi_type (GITypeInfo *info);
+GI_AVAILABLE_IN_1_32
void gi_type_info_extract_ffi_return_value (GITypeInfo *return_info,
GIFFIReturnValue *ffi_value,
GIArgument *arg);
+GI_AVAILABLE_IN_ALL
gboolean g_function_info_prep_invoker (GIFunctionInfo *info,
GIFunctionInvoker *invoker,
GError **error);
+GI_AVAILABLE_IN_1_32
gboolean g_function_invoker_new_for_address (gpointer addr,
GICallableInfo *info,
GIFunctionInvoker *invoker,
GError **error);
+GI_AVAILABLE_IN_ALL
void g_function_invoker_destroy (GIFunctionInvoker *invoker);
+GI_AVAILABLE_IN_ALL
ffi_closure * g_callable_info_prepare_closure (GICallableInfo *callable_info,
ffi_cif *cif,
GIFFIClosureCallback callback,
gpointer user_data);
+GI_AVAILABLE_IN_ALL
void g_callable_info_free_closure (GICallableInfo *callable_info,
ffi_closure *closure);