summaryrefslogtreecommitdiff
path: root/py/objmodule.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-25 14:18:18 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-25 14:18:18 +0000
commitcaac542b235003f7b79d7aa23eaebe8f2c772508 (patch)
treef70b42312f091b10c9e3d871fe1a70d573e7cba4 /py/objmodule.h
parent1dfde891e3e26543da6d42215da6a23c32b0a8bc (diff)
Proper support for registering builtin modules in ROM.
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
Diffstat (limited to 'py/objmodule.h')
-rw-r--r--py/objmodule.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/py/objmodule.h b/py/objmodule.h
new file mode 100644
index 000000000..270551da4
--- /dev/null
+++ b/py/objmodule.h
@@ -0,0 +1,4 @@
+void mp_module_init(void);
+void mp_module_deinit(void);
+mp_obj_t mp_module_get(qstr module_name);
+void mp_module_register(qstr qstr, mp_obj_t module);