diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-02-03 06:24:18 -0800 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-02-03 06:24:18 -0800 |
commit | 56ac6bd9ed99d6bb2cb8641581a594105036be68 (patch) | |
tree | 2dbc47a50e057aca03362702e291087889035a61 /gi/pygi-cache.h | |
parent | 204f5a187782c5325ed6bed96c9a940f3aa67d04 (diff) | |
download | pygobject-56ac6bd9ed99d6bb2cb8641581a594105036be68.tar.gz |
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
Diffstat (limited to 'gi/pygi-cache.h')
-rw-r--r-- | gi/pygi-cache.h | 58 |
1 files changed, 32 insertions, 26 deletions
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 |