diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-22 10:26:37 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-05-22 10:26:37 +0200 |
commit | fd32591d1fb417046e7c4e12ba2be70e6ba7df84 (patch) | |
tree | be968b31322afe8e44bb50b680ffcb7af7e7841c /tests/main.c | |
parent | e560a3ed6cdd9f8c5c23ce54bf4e96f3ca7de4e4 (diff) | |
download | edoors-fd32591d1fb417046e7c4e12ba2be70e6ba7df84.zip edoors-fd32591d1fb417046e7c4e12ba2be70e6ba7df84.tar.gz |
enable input door tests
Diffstat (limited to 'tests/main.c')
-rw-r--r-- | tests/main.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/main.c b/tests/main.c index 35a1e78..69c3449 100644 --- a/tests/main.c +++ b/tests/main.c @@ -59,16 +59,16 @@ int main(int argc, char **argv) } room = eiotas_room_add("room0",&dom0->room); - /* Input *input = input_create("hello world"); */ - /* input_show(input); */ + Input *input = input_create("hello world"); + input_show(input); - /* Eiotas_User_Bits user_bits; */ + Eiotas_User_Bits user_bits; - /* user_bits.data = input; */ - /* user_bits.free_fct = (Eiotas_User_Data_Free)&input_free; */ - /* user_bits.recv_fct = (Eiotas_Receive_Particle)&input_receive; */ - /* Eiotas_Door *din0 = eiotas_door_add("input0",&dom0->room,&user_bits); */ - /* eiotas_iota_show(&din0->iota); // eiotas_iota_show((Eiotas_Iota*)din0); */ + user_bits.data = input; + user_bits.free_fct = (Eiotas_User_Data_Free)&input_free; + user_bits.recv_fct = (Eiotas_Receive_Particle)&input_receive; + Eiotas_Door *din0 = eiotas_door_add("input0",&dom0->room,&user_bits); + eiotas_iota_show(&din0->iota); // eiotas_iota_show((Eiotas_Iota*)din0); /* p0 = eiotas_iota_require_particle((Eiotas_Iota*)din0); */ /* p1 = eiotas_iota_require_particle((Eiotas_Iota*)din0); */ |