diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2013-10-12 16:40:58 -0700 |
---|---|---|
committer | Simon Feltman <sfeltman@src.gnome.org> | 2014-02-02 16:02:57 -0800 |
commit | 4dcaa2b988239e01224994098c3e7cbe8b455fe0 (patch) | |
tree | acbe101a5d864a2a60a841c2176348551d246a43 /gi/pygi-marshal-to-py.c | |
parent | 2cddba811592fbb990322fbf2dce516ffd7e94cd (diff) | |
download | pygobject-4dcaa2b988239e01224994098c3e7cbe8b455fe0.tar.gz |
cache refactoring: Move GObject arg setup and marshaling into new file
Move GObject argument cache setup and marshaling fragments into
isolated file: pygi-object.c.
Break GIInterfaceCache creation and setup into API for interface based
argument cache usage.
https://bugzilla.gnome.org/show_bug.cgi?id=709700
Diffstat (limited to 'gi/pygi-marshal-to-py.c')
-rw-r--r-- | gi/pygi-marshal-to-py.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/gi/pygi-marshal-to-py.c b/gi/pygi-marshal-to-py.c index 69a7c1ae..536193c5 100644 --- a/gi/pygi-marshal-to-py.c +++ b/gi/pygi-marshal-to-py.c @@ -194,15 +194,6 @@ _pygi_marshal_to_py_interface_boxed (PyGIInvokeState *state, } PyObject * -_pygi_marshal_to_py_interface_object_cache_adapter (PyGIInvokeState *state, - PyGICallableCache *callable_cache, - PyGIArgCache *arg_cache, - GIArgument *arg) -{ - return _pygi_marshal_to_py_object(arg, arg_cache->transfer); -} - -PyObject * _pygi_marshal_to_py_interface_union (PyGIInvokeState *state, PyGICallableCache *callable_cache, PyGIArgCache *arg_cache, @@ -216,28 +207,6 @@ _pygi_marshal_to_py_interface_union (PyGIInvokeState *state, } PyObject * -_pygi_marshal_to_py_object (GIArgument *arg, GITransfer transfer) { - PyObject *pyobj; - - if (arg->v_pointer == NULL) { - pyobj = Py_None; - Py_INCREF (pyobj); - - } else if (G_IS_PARAM_SPEC(arg->v_pointer)) { - pyobj = pyg_param_spec_new (arg->v_pointer); - if (transfer == GI_TRANSFER_EVERYTHING) - g_param_spec_unref (arg->v_pointer); - - } else { - pyobj = pygobject_new_full (arg->v_pointer, - /*steal=*/ transfer == GI_TRANSFER_EVERYTHING, - /*type=*/ NULL); - } - - return pyobj; -} - -PyObject * _pygi_marshal_to_py_interface_struct (GIArgument *arg, GIInterfaceInfo *interface_info, GType g_type, |