src: make bearer/operator enums public

Move enums for operator_status and packet_bearer to common.h to avoid
duplication in drivers.
This commit is contained in:
Tony Espy 2015-10-13 18:07:50 +02:00 committed by Denis Kenzior
parent c575802491
commit f2f279b28d
3 changed files with 20 additions and 20 deletions

View File

@ -41,6 +41,14 @@ enum network_registration_status {
NETWORK_REGISTRATION_STATUS_ROAMING = 5,
};
/* 27.007 Section 7.3 <stat> */
enum operator_status {
OPERATOR_STATUS_UNKNOWN = 0,
OPERATOR_STATUS_AVAILABLE = 1,
OPERATOR_STATUS_CURRENT = 2,
OPERATOR_STATUS_FORBIDDEN = 3,
};
/* 27.007 Section 7.6 */
enum clip_validity {
CLIP_VALIDITY_VALID = 0,
@ -48,6 +56,18 @@ enum clip_validity {
CLIP_VALIDITY_NOT_AVAILABLE = 2,
};
/* 27.007 Section 7.29 */
enum packet_bearer {
PACKET_BEARER_NONE = 0,
PACKET_BEARER_GPRS = 1,
PACKET_BEARER_EGPRS = 2,
PACKET_BEARER_UMTS = 3,
PACKET_BEARER_HSUPA = 4,
PACKET_BEARER_HSDPA = 5,
PACKET_BEARER_HSUPA_HSDPA = 6,
PACKET_BEARER_EPS = 7,
};
/* 27.007 Section 7.30 */
enum cnap_validity {
CNAP_VALIDITY_VALID = 0,

View File

@ -58,18 +58,6 @@
#define MAX_CONTEXTS 256
#define SUSPEND_TIMEOUT 8
/* 27.007 Section 7.29 */
enum packet_bearer {
PACKET_BEARER_NONE = 0,
PACKET_BEARER_GPRS = 1,
PACKET_BEARER_EGPRS = 2,
PACKET_BEARER_UMTS = 3,
PACKET_BEARER_HSUPA = 4,
PACKET_BEARER_HSDPA = 5,
PACKET_BEARER_HSUPA_HSDPA = 6,
PACKET_BEARER_EPS = 7,
};
struct ofono_gprs {
GSList *contexts;
ofono_bool_t attached;

View File

@ -50,14 +50,6 @@ enum network_registration_mode {
NETWORK_REGISTRATION_MODE_AUTO_ONLY = 5, /* Out of range of 27.007 */
};
/* 27.007 Section 7.3 <stat> */
enum operator_status {
OPERATOR_STATUS_UNKNOWN = 0,
OPERATOR_STATUS_AVAILABLE = 1,
OPERATOR_STATUS_CURRENT = 2,
OPERATOR_STATUS_FORBIDDEN = 3,
};
struct ofono_netreg {
int status;
int location;