From f3be4cedcb1d395a3fabee95d7460bce86268153 Mon Sep 17 00:00:00 2001 From: Simon Feltman Date: Mon, 3 Feb 2014 06:29:07 -0800 Subject: cache refactoring: Add comments to arg cache setup functions https://bugzilla.gnome.org/show_bug.cgi?id=709700 --- gi/pygi-cache.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gi/pygi-cache.c b/gi/pygi-cache.c index 04f61180..8055c155 100644 --- a/gi/pygi-cache.c +++ b/gi/pygi-cache.c @@ -57,6 +57,17 @@ _arg_info_default_value (GIArgInfo *info, GIArgument *arg) return FALSE; } +/* pygi_arg_base_setup: + * arg_cache: argument cache to initialize + * type_info: source for type related attributes to cache + * arg_info: (allow-none): source for argument related attributes to cache + * transfer: transfer mode to store in the argument cache + * direction: marshaling direction to store in the cache + * + * Initializer for PyGIArgCache + * + * Returns: TRUE on success and FALSE on failure + */ gboolean pygi_arg_base_setup (PyGIArgCache *arg_cache, GITypeInfo *type_info, @@ -140,6 +151,18 @@ _interface_cache_free_func (PyGIInterfaceCache *cache) } } +/* pygi_arg_interface_setup: + * arg_cache: argument cache to initialize + * type_info: source for type related attributes to cache + * arg_info: (allow-none): source for argument related attributes to cache + * transfer: transfer mode to store in the argument cache + * direction: marshaling direction to store in the cache + * iface_info: interface info to cache + * + * Initializer for PyGIInterfaceCache + * + * Returns: TRUE on success and FALSE on failure + */ gboolean pygi_arg_interface_setup (PyGIInterfaceCache *iface_cache, GITypeInfo *type_info, @@ -206,6 +229,19 @@ _sequence_cache_free_func (PyGISequenceCache *cache) } } +/* pygi_arg_sequence_setup: + * sc: sequence cache to initialize + * type_info: source for type related attributes to cache + * arg_info: (allow-none): source for argument related attributes to cache + * transfer: transfer mode to store in the argument cache + * direction: marshaling direction to store in the cache + * iface_info: interface info to cache + * + * Initializer for PyGISequenceCache used for holding list and array argument + * caches. + * + * Returns: TRUE on success and FALSE on failure + */ gboolean pygi_arg_sequence_setup (PyGISequenceCache *sc, GITypeInfo *type_info, -- cgit v1.2.1