diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-06-25 17:49:36 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-25 17:49:36 -0500 |
commit | 20da18ca8b93b88182d0f2c7a48c4b5131c53864 (patch) | |
tree | 8af576a612b919d5a348e2493a03af6dbd1fc76f | |
parent | 04a25a40583d3eb42d776505f790d91dae699007 (diff) | |
download | ofono-20da18ca8b93b88182d0f2c7a48c4b5131c53864.tar.bz2 |
sms: Tweak the Bearer API
-rw-r--r-- | doc/sms-api.txt | 8 | ||||
-rw-r--r-- | src/sms.c | 16 |
2 files changed, 12 insertions, 12 deletions
diff --git a/doc/sms-api.txt b/doc/sms-api.txt index 87076cad..a11ce210 100644 --- a/doc/sms-api.txt +++ b/doc/sms-api.txt @@ -58,7 +58,7 @@ Properties string ServiceCenterAddress Contains the bearer to use for SMS messages. Possible values are: - "cs" - Circuit Switched only - "ps" - Packet Domain only - "cs_preferred" - Use PS if CS is unavailable - "ps_preferred" - Use CS if PS is unavailable + "cs-only" - Circuit Switched only + "ps-only" - Packet Domain only + "cs-preferred" - Use PS if CS is unavailable + "ps-preferred" - Use CS if PS is unavailable @@ -93,13 +93,13 @@ static const char *sms_bearer_to_string(int bearer) { switch (bearer) { case 0: - return "ps"; + return "ps-only"; case 1: - return "cs"; + return "cs-only"; case 2: - return "ps_preferred"; + return "ps-preferred"; case 3: - return "cs_preferred"; + return "cs-preferred"; }; return "unknown"; @@ -107,13 +107,13 @@ static const char *sms_bearer_to_string(int bearer) static int sms_bearer_from_string(const char *str) { - if (g_str_equal(str, "ps")) + if (g_str_equal(str, "ps-only")) return 0; - else if (g_str_equal(str, "cs")) + else if (g_str_equal(str, "cs-only")) return 1; - else if (g_str_equal(str, "ps_preferred")) + else if (g_str_equal(str, "ps-preferred")) return 2; - else if (g_str_equal(str, "cs_preferred")) + else if (g_str_equal(str, "cs-preferred")) return 3; return -1; |