summaryrefslogtreecommitdiffstats
path: root/gio/pygio-utils.h
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-03-28 22:05:10 +0000
committerGian Mario Tagliaretti <gianmt@src.gnome.org>2009-03-28 22:05:10 +0000
commit96bf175f8217e20ca449d9a5aeb8ea90b5844383 (patch)
tree6b735b73a874162c234ec1cb654a0804240c1470 /gio/pygio-utils.h
parent3ed45914ee441d76822c26bf2f34d79fd3c2d7df (diff)
downloadpygobject-96bf175f8217e20ca449d9a5aeb8ea90b5844383.tar.gz
pygobject-96bf175f8217e20ca449d9a5aeb8ea90b5844383.tar.xz
pygobject-96bf175f8217e20ca449d9a5aeb8ea90b5844383.zip
add a couple of convinence functions to convert from/to a python list and
2009-03-28 Gian Mario Tagliaretti <gianmt@gnome.org> * gio/pygio-utils.[hc]: (strv_to_pylist) (pylist_to_strv) add a couple of convinence functions to convert from/to a python list and an array of strings. * gio/Makefile.am * gio/gdrive.override: * gio/gio.override: Strip GDrive overrides and wrap g_drive_enumerate_identifiers * tests/test_gio.py: * gio/gvolume.override: wrap g_volume_enumerate_identifiers * gio/gio.defs: add missing g_drive_get_identifier and g_drive_enumerate_identifiers svn path=/trunk/; revision=1035
Diffstat (limited to 'gio/pygio-utils.h')
-rw-r--r--gio/pygio-utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gio/pygio-utils.h b/gio/pygio-utils.h
index 4836e59..b8794ea 100644
--- a/gio/pygio-utils.h
+++ b/gio/pygio-utils.h
@@ -42,4 +42,8 @@ GList* pygio_pylist_to_gfile_glist(PyObject *pycontext);
GList* pygio_pylist_to_uri_glist(PyObject *pycontext);
+PyObject* strv_to_pylist (char **strv);
+
+gboolean pylist_to_strv (PyObject *list, char ***strvp);
+
#endif /* __PYGIO_UTILS_H__ */