Add some function declarations at the beginning of the generation of the Python wrapper to prevent compilation warnings.

This commit is contained in:
Ghislain MARY 2014-07-11 17:34:29 +02:00
parent f92d32e5cf
commit 3c692e3a36

View file

@ -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) {