Call initializers from descriptor
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Wed, 13 Mar 2013 15:50:11 +0000 (16:50 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 06:50:48 +0000 (15:50 +0900)
Change-Id: Id050dec2b42c7463f7feb16993a25fb011b1d1ff

src/desc_at.c

index 326d6d7..99e9031 100644 (file)
 #include <tcore.h>
 #include <plugin.h>
 
+#include "at_call.h"
 #include "at_ps.h"
+#include "at_gps.h"
+#include "at_modem.h"
+#include "at_network.h"
+#include "at_phonebook.h"
+#include "at_sap.h"
+#include "at_sat.h"
+#include "at_sim.h"
+#include "at_sms.h"
+#include "at_ss.h"
 
 static gboolean on_load()
 {
@@ -37,7 +47,18 @@ static gboolean on_init(TcorePlugin *p)
 
        dbg("i'm init!");
 
-        if (at_ps_init(p) == FALSE)
+        if (at_ps_init(p) == FALSE
+                       || at_call_init(p) == FALSE
+                       || at_gps_init(p) == FALSE
+                       || at_modem_init(p) == FALSE
+                       || at_modem_init(p) == FALSE
+                       || at_network_init(p) == FALSE
+                       || at_phonebook_init(p) == FALSE
+                       || at_sap_init(p) == FALSE
+                       || at_sat_init(p) == FALSE
+                       || at_sim_init(p) == FALSE
+                       || at_sms_init(p) == FALSE
+                       || at_ss_init(p) == FALSE)
                return FALSE;
 
        return TRUE;