diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2010-10-27 17:38:01 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-10-27 16:57:57 +0200 |
commit | de96428ca23e87956f151356e2b764a1e504f0bf (patch) | |
tree | 4a9b2446f791cce6259ca519489447d06b3d4b14 | |
parent | 4e72af9b19a42075c2a7559665b1adc960e2b564 (diff) | |
download | ofono-de96428ca23e87956f151356e2b764a1e504f0bf.tar.bz2 |
gprs-context: add IMS connection type
-rw-r--r-- | include/gprs-context.h | 1 | ||||
-rw-r--r-- | src/gprs.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/gprs-context.h b/include/gprs-context.h index 19abf334..f796e2d5 100644 --- a/include/gprs-context.h +++ b/include/gprs-context.h @@ -44,6 +44,7 @@ enum ofono_gprs_context_type { OFONO_GPRS_CONTEXT_TYPE_INTERNET, OFONO_GPRS_CONTEXT_TYPE_MMS, OFONO_GPRS_CONTEXT_TYPE_WAP, + OFONO_GPRS_CONTEXT_TYPE_IMS, }; struct ofono_gprs_primary_context { @@ -136,6 +136,8 @@ static const char *gprs_context_type_to_default_name(enum ofono_gprs_context_typ return "MMS"; case OFONO_GPRS_CONTEXT_TYPE_WAP: return "WAP"; + case OFONO_GPRS_CONTEXT_TYPE_IMS: + return "IMS"; } return NULL; @@ -152,6 +154,8 @@ static const char *gprs_context_type_to_string(enum ofono_gprs_context_type type return "mms"; case OFONO_GPRS_CONTEXT_TYPE_WAP: return "wap"; + case OFONO_GPRS_CONTEXT_TYPE_IMS: + return "ims"; } return NULL; @@ -165,6 +169,8 @@ static enum ofono_gprs_context_type gprs_context_string_to_type(const char *str) return OFONO_GPRS_CONTEXT_TYPE_WAP; else if (g_str_equal(str, "mms")) return OFONO_GPRS_CONTEXT_TYPE_MMS; + else if (g_str_equal(str, "ims")) + return OFONO_GPRS_CONTEXT_TYPE_IMS; return OFONO_GPRS_CONTEXT_TYPE_INVALID; } |