summaryrefslogtreecommitdiff
path: root/gi/pygi.h
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-03-22 13:20:54 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2011-03-22 13:20:54 -0400
commit01596a9b7cc0ceef3904da5b96939140ee0732fd (patch)
tree04f012e607979f3bf5c897918433d251ffd7aab4 /gi/pygi.h
parentfbabc1fdafa1dcbd1f6aaea7b821bd1c64a546ab (diff)
downloadpygobject-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.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gi/pygi.h b/gi/pygi.h
index 274af4d0..c9a3fec6 100644
--- a/gi/pygi.h
+++ b/gi/pygi.h
@@ -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_);