Generate Licence file
[platform/core/telephony/tel-plugin-at_standard.git] / src / desc_at.c
index 326d6d7..9a163b6 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_network_init(p) == FALSE
+                       || at_phonebook_init(p) == FALSE
+                       || at_ps_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;
@@ -55,7 +76,7 @@ static void on_unload(TcorePlugin *p)
 
 struct tcore_plugin_define_desc plugin_define_desc = {
        .name = "AT",
-       .priority = TCORE_PLUGIN_PRIORITY_HIGH + 1,
+       .priority = TCORE_PLUGIN_PRIORITY_HIGH - 1,
        .version = 1,
        .load = on_load,
        .init = on_init,