bindings/python/my_extra_api_definitions.py
changeset 3408 2cc40b3e4fa5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bindings/python/my_extra_api_definitions.py	Tue Jul 08 10:43:58 2008 -0700
@@ -0,0 +1,13 @@
+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')])
+