to make protocol_enforcer.h independent of
implementation, moved state_t and cmd_t defs to
protocol_enforcer.c
and replaced state_t and cmd_t in interface functions 
with int.