summaryrefslogtreecommitdiff
path: root/gi/pygi-info.c
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:42:56 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2017-07-12 08:43:00 +0900
commit54fae7ae44d06bd920816004a686c1e17751cb54 (patch)
tree3485945c492a0bc5f5d83faf374687cd1d66b7f9 /gi/pygi-info.c
parentd6533baedc708736d91c255cccc1b4507942ee85 (diff)
downloadpygobject2-54fae7ae44d06bd920816004a686c1e17751cb54.tar.gz
pygobject2-54fae7ae44d06bd920816004a686c1e17751cb54.tar.bz2
pygobject2-54fae7ae44d06bd920816004a686c1e17751cb54.zip
Imported Upstream version 3.15.0
Change-Id: I02b859dff581f456d759a90a2aea3eeec391e2ff Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/pygi-info.c')
-rw-r--r--gi/pygi-info.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gi/pygi-info.c b/gi/pygi-info.c
index 4df3359..8e0892a 100644
--- a/gi/pygi-info.c
+++ b/gi/pygi-info.c
@@ -2167,9 +2167,16 @@ _wrap_g_union_info_get_methods (PyGIBaseInfo *self)
return _make_infos_tuple (self, g_union_info_get_n_methods, g_union_info_get_method);
}
+static PyObject *
+_wrap_g_union_info_get_size (PyGIBaseInfo *self)
+{
+ return PYGLIB_PyLong_FromSize_t (g_union_info_get_size (self->info));
+}
+
static PyMethodDef _PyGIUnionInfo_methods[] = {
{ "get_fields", (PyCFunction) _wrap_g_union_info_get_fields, METH_NOARGS },
{ "get_methods", (PyCFunction) _wrap_g_union_info_get_methods, METH_NOARGS },
+ { "get_size", (PyCFunction) _wrap_g_union_info_get_size, METH_NOARGS },
{ NULL, NULL, 0 }
};