Commit 9df211be authored by md's avatar md

Implement wating for MMI data


git-svn-id: svn://svn.videolan.org/dvblast/trunk@105 55d3f8b6-4a41-4d2d-a900-313d1436a5b8
parent 57b74dfc
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
#define RET_MMI_STATUS 3 #define RET_MMI_STATUS 3
#define RET_MMI_SLOT_STATUS 4 #define RET_MMI_SLOT_STATUS 4
#define RET_MMI_RECV 5 #define RET_MMI_RECV 5
#define RET_MMI_WAIT 6
#define RET_HUH 255 #define RET_HUH 255
struct ret_frontend_status struct ret_frontend_status
......
...@@ -124,6 +124,10 @@ while :; do ...@@ -124,6 +124,10 @@ while :; do
echo "CAUTION: the password won't be bulleted, be alone" echo "CAUTION: the password won't be bulleted, be alone"
echo -n "Your choice (empty for extra choices) ? " echo -n "Your choice (empty for extra choices) ? "
;; ;;
252)
sleep 1
continue
;;
0) 0)
echo -n "Your choice: (B)ack, (C)lose or (R)etry ? " echo -n "Your choice: (B)ack, (C)lose or (R)etry ? "
;; ;;
......
...@@ -252,6 +252,10 @@ int main( int i_argc, char **ppsz_argv ) ...@@ -252,6 +252,10 @@ int main( int i_argc, char **ppsz_argv )
exit(0); exit(0);
break; break;
case RET_MMI_WAIT:
exit(252);
break;
case RET_ERR: case RET_ERR:
msg_Err( NULL, "request failed" ); msg_Err( NULL, "request failed" );
exit(255); exit(255);
......
...@@ -2374,7 +2374,7 @@ uint8_t en50221_GetMMIObject( uint8_t *p_buffer, ssize_t i_size, ...@@ -2374,7 +2374,7 @@ uint8_t en50221_GetMMIObject( uint8_t *p_buffer, ssize_t i_size,
i_slot = *p_buffer; i_slot = *p_buffer;
if ( pb_slot_mmi_expected[i_slot] == true ) if ( pb_slot_mmi_expected[i_slot] == true )
return RET_ERR; /* should not happen */ return RET_MMI_WAIT; /* data not yet available */
p_ret->object.i_object_type = EN50221_MMI_NONE; p_ret->object.i_object_type = EN50221_MMI_NONE;
*pi_size = sizeof(struct ret_mmi_recv); *pi_size = sizeof(struct ret_mmi_recv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment