summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPhilip Paeps <philip@paeps.cx>2014-06-19 12:07:06 +0200
committerDenis Kenzior <denkenz@gmail.com>2014-06-21 11:55:30 -0500
commit7011dcdf2f23a7e2ab67eb1e14537b15905865ad (patch)
tree01b2201b84208f2ca582a9fdc0dcb7572553f83f /include
parentf6341502c89c4e67ac2459e103448ce445f7c35d (diff)
downloadofono-7011dcdf2f23a7e2ab67eb1e14537b15905865ad.tar.bz2
include: add auth method to the gprs context API
Diffstat (limited to 'include')
-rw-r--r--include/gprs-context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gprs-context.h b/include/gprs-context.h
index 27d4b495..ed27e66d 100644
--- a/include/gprs-context.h
+++ b/include/gprs-context.h
@@ -48,6 +48,11 @@ enum ofono_gprs_context_type {
OFONO_GPRS_CONTEXT_TYPE_IMS,
};
+enum ofono_gprs_auth_method {
+ OFONO_GPRS_AUTH_METHOD_CHAP = 0,
+ OFONO_GPRS_AUTH_METHOD_PAP,
+};
+
struct ofono_gprs_primary_context {
unsigned int cid;
int direction;
@@ -55,6 +60,7 @@ struct ofono_gprs_primary_context {
char username[OFONO_GPRS_MAX_USERNAME_LENGTH + 1];
char password[OFONO_GPRS_MAX_PASSWORD_LENGTH + 1];
enum ofono_gprs_proto proto;
+ enum ofono_gprs_auth_method auth_method;
};
typedef void (*ofono_gprs_context_cb_t)(const struct ofono_error *error,