isimodem: Indent and add missing codepoints

In addition, renaming some wgmodem2.5-specific subblocks so that they
use the same names as most recent on-line documentation.
This commit is contained in:
Aki Niemi 2011-04-11 17:32:16 +03:00
parent 1055b7f613
commit 61df8b3474
2 changed files with 155 additions and 147 deletions

View File

@ -478,9 +478,9 @@ const char *sms_subblock_name(enum sms_subblock value)
_(SMS_GSM_ROUTING);
_(SMS_GSM_CB_MESSAGE);
_(SMS_GSM_TPDU);
_(SMS_GSM_TPDU_25);
_(SMS_GSM_ROUTE_INFO);
_(SMS_GSM_PARAMETERS);
_(SMS_SB_TPDU);
_(SMS_SB_ROUTE_INFO);
_(SMS_SB_SMS_PARAMETERS);
_(SMS_COMMON_DATA);
_(SMS_ADDRESS);
}

View File

@ -51,7 +51,7 @@ enum sms_isi_cause {
SMS_ERR_CS_INACTIVE = 0x11,
SMS_ERR_SAT_MO_CONTROL_MODIFIED = 0x12,
SMS_ERR_SAT_MO_CONTROL_REJECT = 0x13,
SMS_ERR_TRACFONE_FAILED = 0x14
SMS_ERR_TRACFONE_FAILED = 0x14,
};
enum sms_isi_cause_type {
@ -111,7 +111,7 @@ enum sms_gsm_cause {
SMS_GSM_ERR_CONDITIONAL_IE_ERROR = 0xE4,
SMS_GSM_ERR_LOW_LAYER_MSG_NOT_COMP_WITH_ST = 0xE5,
SMS_GSM_ERR_CS_BARRED = 0xE8,
SMS_GSM_ERR_LOW_LAYER_PROTOCOL_ERROR = 0xEF
SMS_GSM_ERR_LOW_LAYER_PROTOCOL_ERROR = 0xEF,
};
enum sms_message_id {
@ -147,9 +147,9 @@ enum sms_subblock {
SMS_GSM_ROUTING = 0x0D,
SMS_GSM_CB_MESSAGE = 0x0E,
SMS_GSM_TPDU = 0x11,
SMS_GSM_TPDU_25 = 0x001C,
SMS_GSM_ROUTE_INFO = 0x0023,
SMS_GSM_PARAMETERS = 0x0031,
SMS_SB_TPDU = 0x001C,
SMS_SB_ROUTE_INFO = 0x0023,
SMS_SB_SMS_PARAMETERS = 0x0031,
SMS_COMMON_DATA = 0x80,
SMS_ADDRESS = 0x82,
};
@ -159,7 +159,7 @@ enum sms_routing_command {
SMS_ROUTING_SET = 0x01,
SMS_ROUTING_SUSPEND = 0x02,
SMS_ROUTING_RESUME = 0x03,
SMS_ROUTING_UPDATE = 0x04
SMS_ROUTING_UPDATE = 0x04,
};
enum sms_route_preference {
@ -167,62 +167,70 @@ enum sms_route_preference {
SMS_ROUTE_CS = 0x01,
SMS_ROUTE_GPRS = 0x02,
SMS_ROUTE_CS_PREF = 0x03,
SMS_ROUTE_DEFAULT = 0x04
SMS_ROUTE_DEFAULT = 0x04,
};
enum sms_routing_mode {
SMS_GSM_ROUTING_MODE_ALL = 0x0B,
SMS_GSM_ROUTING_MODE_CB_DDL = 0x0C
SMS_GSM_ROUTING_MODE_CB_DDL = 0x0C,
};
enum sms_routing_type {
SMS_GSM_TPDU_ROUTING = 0x06
SMS_GSM_TPDU_ROUTING = 0x06,
};
enum sms_message_type {
SMS_GSM_MT_ALL_TYPE = 0x06
SMS_GSM_MT_ALL_TYPE = 0x06,
};
enum sms_address_type {
SMS_UNICODE_ADDRESS = 0x00,
SMS_GSM_0340_ADDRESS = 0x01,
SMS_GSM_0411_ADDRESS = 0x02,
SMS_SMSC_ADDRESS = 0x02
SMS_SMSC_ADDRESS = 0x02,
};
enum sms_sender_type {
SMS_SENDER_ANY = 0x00,
SMS_SENDER_SIM_ATK = 0x01
SMS_SENDER_SIM_ATK = 0x01,
};
enum sms_content_type {
SMS_TYPE_DEFAULT = 0x00,
SMS_TYPE_TEXT_MESSAGE = 0x01
SMS_TYPE_TEXT_MESSAGE = 0x01,
};
enum sms_subject_list_type {
SMS_CB_ALLOWED_IDS_LIST = 0x00,
SMS_CB_NOT_ALLOWED_IDS_LIST = 0x01
SMS_CB_NOT_ALLOWED_IDS_LIST = 0x01,
};
enum sms_reception_command {
SMS_RECEPTION_ACTIVATE = 0x01,
SMS_RECEPTION_DEACTIVATE = 0x02
SMS_RECEPTION_DEACTIVATE = 0x02,
};
enum sms_reception_status {
SMS_RECEPTION_ACTIVE = 0x01,
SMS_RECEPTION_INACTIVE = 0x02
SMS_RECEPTION_INACTIVE = 0x02,
};
enum sms_setting_type {
SMS_SETTING_TYPE_ROUTE = 0x02
SMS_SETTING_TYPE_ROUTE = 0x02,
};
enum sms_route_priority {
SMS_ROUTE_NOT_AVAILABLE = 0x00,
SMS_ROUTE_PRIORITY_1 = 0x01,
SMS_ROUTE_PRIORITY_2 = 0x02
SMS_ROUTE_PRIORITY_2 = 0x02,
};
enum sms_parameter_indicator {
SMS_PI_DESTINATION_ADDRESS = 0x01,
SMS_PI_SERVICE_CENTER_ADDRESS = 0x02,
SMS_PI_PROTOCOL_ID = 0x04,
SMS_PI_DATA_CODING_SCHEME = 0x08,
SMS_PI_VALIDITY_PERIOD = 0x10,
};
#ifdef __cplusplus