summaryrefslogtreecommitdiffstats
path: root/src/sim.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2009-07-18 01:42:54 +0200
committerDenis Kenzior <denkenz@gmail.com>2009-07-17 23:48:29 -0500
commitda0bdb1cbf7b0817899a3d9a86ad289230b466b6 (patch)
tree74350f63192c1cc9f08e083c0804185346e61d37 /src/sim.c
parent983d16ca37a7bd2840f2794deed629478276cc6d (diff)
downloadofono-da0bdb1cbf7b0817899a3d9a86ad289230b466b6.tar.bz2
Clean-up in sim.c.
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c26
1 files changed, 5 insertions, 21 deletions
diff --git a/src/sim.c b/src/sim.c
index bd928363..86f2e98e 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -65,13 +65,6 @@ struct sim_manager_data {
GSList *ready_notify;
gboolean ready;
GQueue *simop_q;
-
- GSList *spdi;
-
- GSList *opl;
- int opl_num;
- int opl_size;
- int opl_current;
};
static char **get_own_numbers(GSList *own_numbers)
@@ -127,18 +120,6 @@ static void sim_manager_destroy(gpointer userdata)
g_queue_free(data->simop_q);
data->simop_q = NULL;
}
-
- if (data->spdi) {
- g_slist_foreach(data->spdi, (GFunc)g_free, NULL);
- g_slist_free(data->spdi);
- data->spdi = NULL;
- }
-
- if (data->opl) {
- g_slist_foreach(data->opl, (GFunc)g_free, NULL);
- g_slist_free(data->opl);
- data->opl = NULL;
- }
}
static DBusMessage *sim_get_properties(DBusConnection *conn,
@@ -181,7 +162,10 @@ static GDBusMethodTable sim_manager_methods[] = {
{ }
};
-static GDBusSignalTable sim_manager_signals[] = { { } };
+static GDBusSignalTable sim_manager_signals[] = {
+ { "PropertyChanged", "sv" },
+ { }
+};
static void sim_msisdn_read_cb(struct ofono_modem *modem, int ok,
@@ -202,7 +186,7 @@ static void sim_msisdn_read_cb(struct ofono_modem *modem, int ok,
if (structure != OFONO_SIM_FILE_STRUCTURE_FIXED)
return;
- if (length < 14 || record_length < 14 || length < record_length)
+ if (record_length < 14 || length < record_length)
return;
total = length / record_length;