diff --git a/tools/python/apixml2python/linphone_module.mustache b/tools/python/apixml2python/linphone_module.mustache index 488d239b1..3680fdcd4 100644 --- a/tools/python/apixml2python/linphone_module.mustache +++ b/tools/python/apixml2python/linphone_module.mustache @@ -107,7 +107,7 @@ static PyObject * pylinphone_{{class_name}}_instance_method_{{method_name}}(PyOb {{/class_instance_methods}} -static PyMethodDef pylinphone_{{class_name}}_instance_methods[] = { +static PyMethodDef pylinphone_{{class_name}}_methods[] = { /* Class methods */ {{#class_type_hand_written_methods}} { "{{method_name}}", pylinphone_{{class_name}}_class_method_{{method_name}}, METH_VARARGS | METH_CLASS, "" }, @@ -176,7 +176,7 @@ static PyTypeObject pylinphone_{{class_name}}Type = { 0, /* tp_weaklistoffset */ 0, /* tp_iter */ 0, /* tp_iternext */ - pylinphone_{{class_name}}_instance_methods, /* tp_methods */ + pylinphone_{{class_name}}_methods, /* tp_methods */ 0, /* tp_members */ pylinphone_{{class_name}}_getseters, /* tp_getset */ 0, /* tp_base */