From 56ac6bd9ed99d6bb2cb8641581a594105036be68 Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Mon, 3 Feb 2014 06:24:18 -0800 Subject: cache refactoring: Use consistent prefix for arg cache functions Use "pygi_arg_cache" as the prefix for arg cache memory related functions. https://bugzilla.gnome.org/show_bug.cgi?id=709700 --- gi/pygi-cache.h | 58 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 32 insertions(+), 26 deletions(-) (limited to 'gi/pygi-cache.h') diff --git a/gi/pygi-cache.h b/gi/pygi-cache.h index 28046f1a..5521605c 100644 --- a/gi/pygi-cache.h +++ b/gi/pygi-cache.h @@ -194,11 +194,11 @@ struct _PyGICallableCache }; gboolean -pygi_arg_base_setup (PyGIArgCache *arg_cache, - GITypeInfo *type_info, - GIArgInfo *arg_info, /* may be NULL for return arguments */ - GITransfer transfer, - PyGIDirection direction); +pygi_arg_base_setup (PyGIArgCache *arg_cache, + GITypeInfo *type_info, + GIArgInfo *arg_info, /* may be NULL for return arguments */ + GITransfer transfer, + PyGIDirection direction); gboolean pygi_arg_interface_setup (PyGIInterfaceCache *iface_cache, @@ -209,11 +209,11 @@ pygi_arg_interface_setup (PyGIInterfaceCache *iface_cache, GIInterfaceInfo *iface_info); gboolean -pygi_arg_sequence_setup (PyGISequenceCache *sc, - GITypeInfo *type_info, - GIArgInfo *arg_info, /* may be NULL for return arguments */ - GITransfer transfer, - PyGIDirection direction); +pygi_arg_sequence_setup (PyGISequenceCache *sc, + GITypeInfo *type_info, + GIArgInfo *arg_info, /* may be NULL for return arguments */ + GITransfer transfer, + PyGIDirection direction); PyGIArgCache * pygi_arg_interface_new_from_info (GITypeInfo *type_info, @@ -222,22 +222,28 @@ pygi_arg_interface_new_from_info (GITypeInfo *type_info, PyGIDirection direction, GIInterfaceInfo *iface_info); -PyGIArgCache * _arg_cache_alloc (void); -PyGIArgCache * _arg_cache_new (GITypeInfo *type_info, - GIArgInfo *arg_info, - GITransfer transfer, - PyGIDirection direction, - /* will be removed */ - gssize c_arg_index, - gssize py_arg_index, - PyGICallableCache *callable_cache); - -void _pygi_arg_cache_free (PyGIArgCache *cache); -void _pygi_arg_cache_clear (PyGIArgCache *cache); -void _pygi_callable_cache_free (PyGICallableCache *cache); - -PyGICallableCache *_pygi_callable_cache_new (GICallableInfo *callable_info, - gboolean is_ccallback); +PyGIArgCache * +pygi_arg_cache_alloc (void); + +PyGIArgCache * +pygi_arg_cache_new (GITypeInfo *type_info, + GIArgInfo *arg_info, + GITransfer transfer, + PyGIDirection direction, + /* will be removed */ + gssize c_arg_index, + gssize py_arg_index, + PyGICallableCache *callable_cache); + +void +pygi_arg_cache_free (PyGIArgCache *cache); + +void +pygi_callable_cache_free (PyGICallableCache *cache); + +PyGICallableCache * +pygi_callable_cache_new (GICallableInfo *callable_info, + gboolean is_ccallback); #define _pygi_callable_cache_args_len(cache) ((cache)->args_cache)->len -- cgit v1.2.1