diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2011-03-22 13:20:54 -0400 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2011-03-22 13:20:54 -0400 |
commit | 01596a9b7cc0ceef3904da5b96939140ee0732fd (patch) | |
tree | 04f012e607979f3bf5c897918433d251ffd7aab4 /gi/pygi.h | |
parent | fbabc1fdafa1dcbd1f6aaea7b821bd1c64a546ab (diff) | |
download | pygobject-01596a9b7cc0ceef3904da5b96939140ee0732fd.tar.gz |
[gi] foreign types now take interface infos instead of type infos
* this is a prep for the invoke-rewrite branch
* when marshalling foreign structs we may not have the type info but
we will always have the interface info to pass
* this simplifies the code because we were simply converting the
type info back to an interface info anyway so there is less
refcounting to keep track of
* also fixes a bug where we were leaking PyNone ref counts
Diffstat (limited to 'gi/pygi.h')
-rw-r--r-- | gi/pygi.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -55,12 +55,12 @@ typedef struct { gsize size; } PyGIBoxed; -typedef PyObject * (*PyGIArgOverrideToGIArgumentFunc) (PyObject *value, - GITypeInfo *type_info, - GITransfer transfer, - GIArgument *arg); -typedef PyObject * (*PyGIArgOverrideFromGIArgumentFunc) (GITypeInfo *type_info, - gpointer data); +typedef PyObject * (*PyGIArgOverrideToGIArgumentFunc) (PyObject *value, + GIInterfaceInfo *interface_info, + GITransfer transfer, + GIArgument *arg); +typedef PyObject * (*PyGIArgOverrideFromGIArgumentFunc) (GIInterfaceInfo *interface_info, + gpointer data); typedef PyObject * (*PyGIArgOverrideReleaseFunc) (GITypeInfo *type_info, gpointer struct_); |