diff --git a/tools/python/apixml2python/linphone_module.mustache b/tools/python/apixml2python/linphone_module.mustache index fc8ed7a96..a92149c1e 100644 --- a/tools/python/apixml2python/linphone_module.mustache +++ b/tools/python/apixml2python/linphone_module.mustache @@ -69,6 +69,11 @@ typedef struct { {{/classes}} +{{#classes}} +static {{class_cname}} * pylinphone_{{class_name}}_get_native_ptr(PyObject *self); +static PyObject * pylinphone_{{class_name}}_new_from_native_ptr(PyTypeObject *type, {{class_cname}} *native_ptr); +{{/classes}} + {{#classes}} static {{class_cname}} * pylinphone_{{class_name}}_get_native_ptr(PyObject *self) {