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-argument.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-argument.c')
-rw-r--r-- | gi/pygi-argument.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gi/pygi-argument.c b/gi/pygi-argument.c index c58afa37..4624e0f8 100644 --- a/gi/pygi-argument.c +++ b/gi/pygi-argument.c @@ -34,6 +34,7 @@ #include "pygi-marshal-from-py.h" #include "pygi-marshal-to-py.h" #include "pygi-basictype.h" +#include "pygi-object.h" static gboolean @@ -1063,7 +1064,7 @@ array_success: case GI_INFO_TYPE_INTERFACE: case GI_INFO_TYPE_OBJECT: /* An error within this call will result in a NULL arg */ - _pygi_marshal_from_py_gobject_out_arg (object, &arg, transfer); + pygi_arg_gobject_out_arg_from_py (object, &arg, transfer); break; default: @@ -1436,10 +1437,10 @@ _pygi_argument_to_object (GIArgument *arg, transfer == GI_TRANSFER_NOTHING && g_object_is_floating (arg->v_pointer)) { g_object_ref (arg->v_pointer); - object = _pygi_marshal_to_py_object (arg, GI_TRANSFER_EVERYTHING); + object = pygi_arg_gobject_to_py (arg, GI_TRANSFER_EVERYTHING); g_object_force_floating (arg->v_pointer); } else { - object = _pygi_marshal_to_py_object (arg, transfer); + object = pygi_arg_gobject_to_py (arg, transfer); } break; |