summaryrefslogtreecommitdiff
path: root/gi/pygi-value.h
diff options
context:
space:
mode:
authorSimon Feltman <sfeltman@src.gnome.org>2014-08-08 16:31:01 -0700
committerSimon Feltman <sfeltman@src.gnome.org>2014-08-17 22:31:19 -0700
commit8f4b06f700ed79df32774fad8e2a2a922bfbfbe5 (patch)
tree910253781a8f88f30695a6f2f53dc101944dd5de /gi/pygi-value.h
parentb0236d6fde137e0b2ecf7f5556ad5d53c22874bc (diff)
downloadpygobject-8f4b06f700ed79df32774fad8e2a2a922bfbfbe5.tar.gz
Break pyg_value_as_pyobject into two functions
Add pygi_value_to_py_basic_type() which is limited to handling basic types that don't need introspection information when marshalling to Python. Add pygi_value_to_py_structured_type() for marshalling of structured data which can eventually accept GI type hints. https://bugzilla.gnome.org/show_bug.cgi?id=726999
Diffstat (limited to 'gi/pygi-value.h')
-rw-r--r--gi/pygi-value.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gi/pygi-value.h b/gi/pygi-value.h
index 544da3c9..ce2e9020 100644
--- a/gi/pygi-value.h
+++ b/gi/pygi-value.h
@@ -39,6 +39,12 @@ PyObject *pyg_param_gvalue_as_pyobject(const GValue* gvalue,
PyObject *pyg_strv_from_gvalue(const GValue *value);
int pyg_strv_to_gvalue(GValue *value, PyObject *obj);
+PyObject *pygi_value_to_py_basic_type (const GValue *value,
+ GType fundamental);
+PyObject *pygi_value_to_py_structured_type (const GValue *value,
+ GType fundamental,
+ gboolean copy_boxed);
+
G_END_DECLS
#endif /* __PYGI_VALUE_H__ */