summaryrefslogtreecommitdiff
path: root/include/types.h
diff options
context:
space:
mode:
authorGiacinto Cifelli <gciofono@gmail.com>2018-10-09 21:32:41 +0200
committerDenis Kenzior <denkenz@gmail.com>2018-10-09 15:06:36 -0500
commit93caa4ceefc40c1eb7d595e07aa13eaa472e8ead (patch)
tree879d0d8772c94b60f75c161f69de273e165f5bf0 /include/types.h
parentd9e3329f55c85167c578ee044044c7f28c2d84d0 (diff)
downloadofono-93caa4ceefc40c1eb7d595e07aa13eaa472e8ead.tar.gz
include: move auth_method and proto enumerations
ofono_gprs_proto and ofono_gprs_auth_method, and related length consts, moved to types.h from gprs-context.h, so that they can be shared also with lte core functions
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
index 90d8c2c9..7e356185 100644
--- a/include/types.h
+++ b/include/types.h
@@ -122,6 +122,27 @@ struct ofono_uuid {
unsigned char uuid[OFONO_SHA1_UUID_LEN];
};
+/*
+ * ETSI 123.003, Section 9.1:
+ * the APN has, after encoding as defined in the paragraph below, a maximum
+ * length of 100 octets
+ */
+#define OFONO_GPRS_MAX_APN_LENGTH 100
+#define OFONO_GPRS_MAX_USERNAME_LENGTH 63
+#define OFONO_GPRS_MAX_PASSWORD_LENGTH 255
+
+enum ofono_gprs_proto {
+ OFONO_GPRS_PROTO_IP = 0,
+ OFONO_GPRS_PROTO_IPV6,
+ OFONO_GPRS_PROTO_IPV4V6,
+};
+
+enum ofono_gprs_auth_method {
+ OFONO_GPRS_AUTH_METHOD_CHAP = 0,
+ OFONO_GPRS_AUTH_METHOD_PAP,
+ OFONO_GPRS_AUTH_METHOD_NONE,
+};
+
const char *ofono_uuid_to_str(const struct ofono_uuid *uuid);
void ofono_call_init(struct ofono_call *call);