diff options
Diffstat (limited to '')
-rw-r--r-- | libmount/python/tab.c | 48 |
1 files changed, 11 insertions, 37 deletions
diff --git a/libmount/python/tab.c b/libmount/python/tab.c index 000bc13..d33a1fe 100644 --- a/libmount/python/tab.c +++ b/libmount/python/tab.c @@ -731,43 +731,17 @@ static PyObject *Table_repr(TableObject *self) PyTypeObject TableType = { PyVarObject_HEAD_INIT(NULL, 0) - "libmount.Table", /*tp_name*/ - sizeof(TableObject), /*tp_basicsize*/ - 0, /*tp_itemsize*/ - (destructor)Table_destructor, /*tp_dealloc*/ - 0, /*tp_print*/ - NULL, /*tp_getattr*/ - NULL, /*tp_setattr*/ - NULL, /*tp_compare*/ - (reprfunc) Table_repr, /*tp_repr*/ - NULL, /*tp_as_number*/ - NULL, /*tp_as_sequence*/ - NULL, /*tp_as_mapping*/ - NULL, /*tp_hash */ - NULL, /*tp_call*/ - NULL, /*tp_str*/ - NULL, /*tp_getattro*/ - NULL, /*tp_setattro*/ - NULL, /*tp_as_buffer*/ - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /*tp_flags*/ - Table_HELP, /* tp_doc */ - NULL, /* tp_traverse */ - NULL, /* tp_clear */ - NULL, /* tp_richcompare */ - 0, /* tp_weaklistoffset */ - NULL, /* tp_iter */ - NULL, /* tp_iternext */ - Table_methods, /* tp_methods */ - Table_members, /* tp_members */ - Table_getseters, /* tp_getset */ - NULL, /* tp_base */ - NULL, /* tp_dict */ - NULL, /* tp_descr_get */ - NULL, /* tp_descr_set */ - 0, /* tp_dictoffset */ - (initproc)Table_init, /* tp_init */ - NULL, /* tp_alloc */ - Table_new, /* tp_new */ + .tp_name = "libmount.Table", + .tp_basicsize = sizeof(TableObject), + .tp_dealloc = (destructor)Table_destructor, + .tp_repr = (reprfunc) Table_repr, + .tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, + .tp_doc = Table_HELP, + .tp_methods = Table_methods, + .tp_members = Table_members, + .tp_getset = Table_getseters, + .tp_init = (initproc)Table_init, + .tp_new = Table_new, }; void Table_AddModuleObject(PyObject *mod) |