From 3c692e3a36d7e55819c1693ac5d2b4a23e098e3e Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 11 Jul 2014 17:34:29 +0200 Subject: [PATCH] Add some function declarations at the beginning of the generation of the Python wrapper to prevent compilation warnings. --- tools/python/apixml2python/linphone_module.mustache | 5 +++++ 1 file changed, 5 insertions(+) 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) {