diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2009-06-18 06:04:23 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-06-18 16:57:58 -0500 |
commit | f93376229a83d9f3f58e0e7f39fcd55ef97fbccb (patch) | |
tree | 645e645553e74fb47a01a2e87a509f8281bb814c /src/common.c | |
parent | 9156607bc9a84711419fe70e64f199316e50e71b (diff) | |
download | ofono-f93376229a83d9f3f58e0e7f39fcd55ef97fbccb.tar.bz2 |
Teach USSD to recognise password change strings.
This is slightly hacky, part of ussd.c responsible for registering services
is duplicated and parse_ss_control_string is modified to accept a fourth
SI fragment in the input string.
Diffstat (limited to 'src/common.c')
-rw-r--r-- | src/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c index 86534320..a9166bf9 100644 --- a/src/common.c +++ b/src/common.c @@ -465,7 +465,7 @@ const char *ss_control_type_to_string(enum ss_control_type type) gboolean parse_ss_control_string(char *str, int *ss_type, char **sc, char **sia, char **sib, char **sic, - char **dn) + char **sid, char **dn) { int len = strlen(str); int cur = 0; @@ -533,6 +533,7 @@ gboolean parse_ss_control_string(char *str, int *ss_type, NEXT_FIELD(c, *sia); NEXT_FIELD(c, *sib); NEXT_FIELD(c, *sic); + NEXT_FIELD(c, *sid); if (*c == '\0') ret = TRUE; |