diff options
author | Jeevaka Badrappan <jeevaka.badrappan@elektrobit.com> | 2010-09-09 05:31:53 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-09 10:17:33 -0500 |
commit | f27528e18bd71ec35b170923fc68e31d51c822fc (patch) | |
tree | b407434428d941dd9bc18e33d65c6bc56e8fe629 /src/stkutil.h | |
parent | aee0f392313dfb60bccb5227022214171632b04d (diff) | |
download | ofono-f27528e18bd71ec35b170923fc68e31d51c822fc.tar.bz2 |
stkutil: Add Send USSD-specific Text dataobj
Send USSD terminal response re-uses the 'Text' data object, however it
passes around binary data structures. We make an exception specifically
for this case and invent a new stk_ussd_text data structure that is
handled separately from simple STK text.
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h index 565751c2..c432df87 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -1376,6 +1376,12 @@ struct stk_answer_text { */ }; +struct stk_ussd_text { + const unsigned char *text; + int dcs; + int len; +}; + struct stk_response_get_inkey { struct stk_answer_text text; struct stk_duration duration; @@ -1447,6 +1453,10 @@ struct stk_response_run_at_command { const char *at_response; }; +struct stk_response_send_ussd { + struct stk_ussd_text text; +}; + struct stk_response { unsigned char number; unsigned char type; @@ -1476,6 +1486,7 @@ struct stk_response { struct stk_response_generic send_dtmf; struct stk_response_generic language_notification; struct stk_response_generic launch_browser; + struct stk_response_send_ussd send_ussd; }; void (*destructor)(struct stk_response *response); |