This additional level of the state machine is used by the states SEND and REC and will help to remove some work-arounds that are currently only there because this additional level is missing. --- lib/defines.h | 6 ++++++ lib/obex_main.h | 1 + 2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/defines.h b/lib/defines.h index 4169911..eb2257b 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -29,6 +29,12 @@ enum obex_state { STATE_REC, }; +enum obex_substate { + SUBSTATE_RECEIVE_RX, + SUBSTATE_PREPARE_TX, + SUBSTATE_TRANSMIT_TX, +}; + #define OBEX_SRM_FLAG_WAIT_LOCAL (1 << 0) #define OBEX_SRM_FLAG_WAIT_REMOTE (1 << 1) diff --git a/lib/obex_main.h b/lib/obex_main.h index 8a3e975..24d37c5 100644 --- a/lib/obex_main.h +++ b/lib/obex_main.h @@ -41,6 +41,7 @@ struct obex { uint16_t mtu_tx_max; /* Maximum TX we can accept */ enum obex_state state; + enum obex_substate substate; enum obex_mode mode; enum obex_rsp_mode rsp_mode; /* OBEX_RSP_MODE_* */ -- 1.7.5.4 ------------------------------------------------------------------------------ Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users