diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-01 14:10:16 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-08-01 14:10:16 +0000 |
| commit | c37cd33e6f3ab52921fefdb0d5431bd11e2344f6 (patch) | |
| tree | c8f72d38cf5e62e25621a8c9526c88e9b15fdc57 /bindings/lang_python_wrapper_top.c | |
| parent | 78b38f8f0eccc5d55a9f52a8fdda4f52dca177e8 (diff) | |
| download | lasso-c37cd33e6f3ab52921fefdb0d5431bd11e2344f6.tar.gz lasso-c37cd33e6f3ab52921fefdb0d5431bd11e2344f6.tar.xz lasso-c37cd33e6f3ab52921fefdb0d5431bd11e2344f6.zip | |
add const modifier to conversion function on GList*, a problem still remains that g_list_length do not take a const GList*
Diffstat (limited to 'bindings/lang_python_wrapper_top.c')
| -rw-r--r-- | bindings/lang_python_wrapper_top.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bindings/lang_python_wrapper_top.c b/bindings/lang_python_wrapper_top.c index 95fb5bc0..8d35e419 100644 --- a/bindings/lang_python_wrapper_top.c +++ b/bindings/lang_python_wrapper_top.c @@ -15,9 +15,9 @@ static void set_hashtable_of_pygobject(GHashTable *a_hash, PyObject *dict); static void set_list_of_strings(GList **a_list, PyObject *seq); static void set_list_of_xml_nodes(GList **a_list, PyObject *seq); static void set_list_of_pygobject(GList **a_list, PyObject *seq); -static PyObject *get_list_of_strings(GList *a_list); -static PyObject *get_list_of_xml_nodes(GList *a_list); -static PyObject *get_list_of_pygobject(GList *a_list); +static PyObject *get_list_of_strings(const GList *a_list); +static PyObject *get_list_of_xml_nodes(const GList *a_list); +static PyObject *get_list_of_pygobject(const GList *a_list); static gboolean valid_seq(PyObject *seq); static void free_list(GList **a_list, GFunc free_help); @@ -259,7 +259,7 @@ get_xml_node_from_pystring(PyObject *string) { } /** Return a tuple containing the string contained in a_list */ static PyObject * -get_list_of_strings(GList *a_list) { +get_list_of_strings(const GList *a_list) { PyObject *a_tuple = NULL; int i = 0; @@ -293,7 +293,7 @@ failure: } static PyObject * -get_list_of_xml_nodes(GList *a_list) { +get_list_of_xml_nodes(const GList *a_list) { PyObject *a_tuple = NULL; int i = 0; @@ -329,7 +329,7 @@ failure: } static PyObject * -get_list_of_pygobject(GList *a_list) { +get_list_of_pygobject(const GList *a_list) { PyObject *a_tuple = NULL; int i = 0; |
