function defines
global defs

defs.name=0;
defs.init=1;
defs.start=2;
defs.iter=3;
defs.stop=4;
defs.destroy=5;
% kludgy defines for mecha callback code
defs.mecha_callback_iter=40000;
defs.mecha_callback_reset=40001;
defs.mecha_callback_option=40002;

defs.state_stop=0;
defs.state_pause=1;
defs.state_run=2;
