summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-02-03 06:29:07 -0800
committerSimon Feltman <sfeltman@src.gnome.org>2014-02-03 06:29:07 -0800
commitf3be4cedcb1d395a3fabee95d7460bce86268153 (patch)
tree533a816374b126e8b5f74fa9d5c00a4bac451a9a
parent56ac6bd9ed99d6bb2cb8641581a594105036be68 (diff)
downloadpygobject-f3be4cedcb1d395a3fabee95d7460bce86268153.tar.gz
cache refactoring: Add comments to arg cache setup functions
https://bugzilla.gnome.org/show_bug.cgi?id=709700
-rw-r--r--gi/pygi-cache.c36
1 files changed, 36 insertions, 0 deletions
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,