summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-18 15:34:30 -0800
committerDamien George <damien.p.george@gmail.com>2014-01-18 15:34:30 -0800
commit8fce5b42a282d2878004b6a6b53927c7ebeede3f (patch)
tree75cd6a66e470f1ea5d3ac63464f2ab0432202193 /unix/main.c
parent6b21538e915ba82878a41e0691d49d5e096fceb8 (diff)
parentfc926082373970824fc1be2ccef7d4edcfc8af9d (diff)
downloadmicropython-8fce5b42a282d2878004b6a6b53927c7ebeede3f.tar.gz
micropython-8fce5b42a282d2878004b6a6b53927c7ebeede3f.zip
Merge pull request #194 from pfalcon/socket
Add lean ("raw") socket module.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/main.c b/unix/main.c
index c33a439376..39a772d1eb 100644
--- a/unix/main.c
+++ b/unix/main.c
@@ -21,6 +21,7 @@
#endif
extern const mp_obj_fun_native_t mp_builtin_open_obj;
+void rawsocket_init();
static void execute_from_lexer(mp_lexer_t *lex, mp_parse_input_kind_t input_kind, bool is_repl) {
if (lex == NULL) {
@@ -223,6 +224,7 @@ int main(int argc, char **argv) {
rt_store_name(qstr_from_str_static("test"), test_obj_new(42));
rt_store_name(qstr_from_str_static("open"), (mp_obj_t)&mp_builtin_open_obj);
+ rawsocket_init();
// Here is some example code to create a class and instance of that class.
// First is the Python, then the C code.