foreign(master_main, c, master_main(+integer,+integer,+integer,+address(zchunk_t),+address(zchunk_t),+string,+string,+string,+integer,[-integer])).
foreign(alloc_term, c, alloc_term(+address(char), +integer, [-address(zchunk_t)])).
foreign(setup_worker, c, setup_worker(+integer, +integer, +string, +string, +string)).
foreign(work_reactor, c, work_reactor([-integer])).
foreign(teardown_worker, c, teardown_worker).
foreign(new_results_message, c, new_results_message([-address(zmsg_t)])).
foreign(start_timer, c, start_timer).
foreign(stop_timer, c, stop_timer).
foreign(msg_put_str, c, msg_put_str(+address(zmsg_t), +string)).
foreign(put_succ, c, put_succ(+address(zmsg_t), +address(char), +integer, +integer)).
foreign(add_stats, c, add_stats(+address(zmsg_t))).
foreign(send_and_destroy_msg, c, send_and_destroy_msg(+address(zmsg_t))).