diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-12-14 00:00:00 +0000 |
---|---|---|
committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-12-14 13:55:05 +0100 |
commit | 05a59a1cdf8774eb351ea7ede186c5be0480d4f7 (patch) | |
tree | faa88b34739f996c70ce40e790094065d942b768 /gi | |
parent | eab86dd66bcaee14d91f74f3e05e73f61f944d63 (diff) | |
download | pygobject-05a59a1cdf8774eb351ea7ede186c5be0480d4f7.tar.gz |
pygi-info: wrap g_union_info_get_alignment()
Aligment is useful when validating ABI against C.
It is already wrapped for structs, wrap it for unions as well.
Diffstat (limited to 'gi')
-rw-r--r-- | gi/pygi-info.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gi/pygi-info.c b/gi/pygi-info.c index 4fca825a..904b866f 100644 --- a/gi/pygi-info.c +++ b/gi/pygi-info.c @@ -2229,10 +2229,17 @@ _wrap_g_union_info_get_size (PyGIBaseInfo *self) return pygi_gsize_to_py (g_union_info_get_size (self->info)); } +static PyObject * +_wrap_g_union_info_get_alignment (PyGIBaseInfo *self) +{ + return pygi_gsize_to_py (g_union_info_get_alignment (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 }, + { "get_alignment", (PyCFunction) _wrap_g_union_info_get_alignment, METH_NOARGS }, { NULL, NULL, 0 } }; |