%define major 0
%define minor 1
-%define patchlevel 66
+%define patchlevel 67
Name: tel-plugin-atmodem
Version: %{major}.%{minor}.%{patchlevel}
break;
case 9:
- command = TNOTI_CALL_INFO_DEFLECTED;
+ command = TNOTI_CALL_INFO_DEFLECTED_CALL;
break;
default:
}
typedef enum {
- SIM_FILE_TYPE_DEDICATED = 0x00, /**< Dedicated */
- SIM_FILE_TYPE_TRANSPARENT = 0x01, /**< Transparent -binary type*/
- SIM_FILE_TYPE_LINEAR_FIXED = 0x02, /**< Linear fixed - record type*/
- SIM_FILE_TYPE_CYCLIC = 0x04, /**< Cyclic - record type*/
- SIM_FILE_TYPE_INVALID_TYPE = 0xFF /**< Invalid type */
-} sim_file_type_t;
-
-typedef enum {
SIM_CURR_SEC_OP_PIN1_VERIFY,
SIM_CURR_SEC_OP_PIN2_VERIFY,
SIM_CURR_SEC_OP_PUK1_VERIFY,
guint rec_count; /**< Number of records in file */
guint data_size; /**< File size */
guint current_index; /**< Current index to read */
- sim_file_type_t file_type; /**< File type and structure */
+ enum tcore_sim_file_type_e file_type; /**< File type and structure */
struct tel_sim_mbi_list mbi_list; /**< Mailbox List */
struct tel_sim_mb_number mb_list[SIM_MSP_CNT_MAX * 5]; /**< Mailbox number */
enum tel_sim_file_id file_id; /**< Current file id */
/* increment to next byte */
case 0x1:
dbg("Getting FileType: [Transparent file type]");
- file_type = SIM_FILE_TYPE_TRANSPARENT;
+ file_type = SIM_FTYPE_TRANSPARENT;
/* increment to next byte */
ptr_data++;
num_of_records = *ptr_data++;
/* Data lossy conversation from enum (int) to unsigned char */
- file_type = SIM_FILE_TYPE_LINEAR_FIXED;
+ file_type = SIM_FTYPE_LINEAR_FIXED;
break;
case 0x6:
SWAP_BYTES_16(record_len);
ptr_data = ptr_data + 2;
num_of_records = *ptr_data++;
- file_type = SIM_FILE_TYPE_CYCLIC;
+ file_type = SIM_FTYPE_CYCLIC;
break;
default:
/* increament to next byte as this byte is RFU */
ptr_data++;
file_type =
- (file_type_tag == 0x00) ? SIM_FILE_TYPE_TRANSPARENT : SIM_FILE_TYPE_LINEAR_FIXED;
+ (file_type_tag == 0x00) ? SIM_FTYPE_TRANSPARENT : SIM_FTYPE_LINEAR_FIXED;
} else {
/* increment to next byte */
ptr_data++;
/* For a cyclic EF all bits except bit 7 are RFU; b7=1 indicates that */
/* the INCREASE command is allowed on the selected cyclic file. */
- file_type = SIM_FILE_TYPE_CYCLIC;
+ file_type = SIM_FTYPE_CYCLIC;
}
/* bytes 9 to 11 give SIM file access conditions */
dbg("Getting FileType: [Transparent file type]");
/* increment to next byte */
ptr_data++;
- file_type = 0x01; /* SIM_FTYPE_TRANSPARENT */
+ file_type = SIM_FTYPE_TRANSPARENT;
/* data coding byte - value 21 */
ptr_data++;
num_of_records = *ptr_data++;
/* Data lossy conversation from enum (int) to unsigned char */
- file_type = 0x02; /* SIM_FTYPE_LINEAR_FIXED */
+ file_type = SIM_FTYPE_LINEAR_FIXED;
break;
case 0x6:
record_len = SMS_SWAPBYTES16(record_len);
ptr_data = ptr_data + 2;
num_of_records = *ptr_data++;
- file_type = 0x04; /* SIM_FTYPE_CYCLIC */
+ file_type = SIM_FTYPE_CYCLIC;
break;
default:
/* increament to next byte as this byte is RFU */
ptr_data++;
file_type =
- (file_type_tag == 0x00) ? 0x01 : 0x02; /* SIM_FTYPE_TRANSPARENT:SIM_FTYPE_LINEAR_FIXED; */
+ (file_type_tag == 0x00) ? SIM_FTYPE_TRANSPARENT : SIM_FTYPE_LINEAR_FIXED;
} else {
/* increment to next byte */
ptr_data++;
/* For a cyclic EF all bits except bit 7 are RFU; b7=1 indicates that */
/* the INCREASE command is allowed on the selected cyclic file. */
- file_type = 0x04; /* SIM_FTYPE_CYCLIC; */
+ file_type = SIM_FTYPE_CYCLIC;
}
/* bytes 9 to 11 give SIM file access conditions */
gboolean s_sms_init(TcorePlugin *p, TcoreHal *hal)
{
CoreObject *co;
- struct property_sms_info *data = NULL;
int *smsp_record_len = NULL;
co = tcore_sms_new(p, "umts_sms", &sms_ops, hal);
return FALSE;
}
- data = g_try_malloc0(sizeof(struct property_sms_info));
- if (NULL == data) {
- err("Unable to initialize. Exiting");
- s_sms_exit(p);
-
- dbg("Exit");
- return FALSE;
- }
-
/* Add Callbacks */
tcore_object_add_callback(co,
"\e+CMT:",
"+SCDEV",
on_notification_sms_device_ready, NULL);
- tcore_plugin_link_property(p, "SMS", data);
-
/* Storing smsp record length */
smsp_record_len = g_try_malloc0(sizeof(int));
tcore_plugin_link_property(p, "SMSPRECORDLEN", smsp_record_len);
void s_sms_exit(TcorePlugin *p)
{
CoreObject *co;
+ int *smsp_record_len = NULL;
co = tcore_plugin_ref_core_object(p, CORE_OBJECT_TYPE_SMS);
if (!co) {
return;
}
+ smsp_record_len = tcore_plugin_ref_property(p, "SMSPRECORDLEN");
+ g_free(smsp_record_len);
+
tcore_sms_free(co);
}
void s_ss_exit(TcorePlugin *p)
{
CoreObject *o;
- struct property_network_info *data;
o = tcore_plugin_ref_core_object(p, CORE_OBJECT_TYPE_SS);
- data = tcore_plugin_ref_property(p, "SS");
- if (data)
- g_free(data);
-
tcore_ss_free(o);
}