From fd32591d1fb417046e7c4e12ba2be70e6ba7df84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 22 May 2012 10:26:37 +0200 Subject: enable input door tests --- tests/main.c | 16 ++++++++-------- 1 file 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); */ -- cgit v1.1-2-g2b99