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 ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Openobex-users mailing list Openobex-users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/openobex-users