bindings/python/my_extra_api_definitions.py
author Alexander Krotov <ilabdsf@yandex.ru>
Fri, 04 Sep 2015 01:10:29 +0200
changeset 11630 aba589d21bce
parent 3408 2cc40b3e4fa5
permissions -rw-r--r--
bug 2173: WifiInformationElement::DeserializeIfPresent attempts to read beyond the end of buffer

from pybindgen import Module, FileCodeSink, write_preamble, param, retval

def register_types(module):
    module.add_class('MyClass')
    
def register_methods(root_module):
    MyClass = root_module['MyClass']
    MyClass.add_constructor([], visibility='public')
    MyClass.add_constructor([param('double', 's'), param('double', 'l'), param('double', 'mean')], visibility='public')

def register_functions(module):
    module.add_function('SomeFunction', 'int', [param('int', 'xpto')])