desc_at: Add at_ps module calls and remove useless headers
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Tue, 4 Dec 2012 11:09:18 +0000 (12:09 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 06:49:34 +0000 (15:49 +0900)
Change-Id: I69dd3a8f3108e3437c59c47e34fea9c38070e07f

src/desc_at.c

index b937080..326d6d7 100644 (file)
  * limitations under the License.
  */
 
-#include <stdio.h>
-#include <stdlib.h>
-#include <ctype.h>
-#include <string.h>
 #include <glib.h>
 
 #include <tcore.h>
 #include <plugin.h>
-#include <hal.h>
-#include <server.h>
+
+#include "at_ps.h"
 
 static gboolean on_load()
 {
@@ -41,6 +37,9 @@ static gboolean on_init(TcorePlugin *p)
 
        dbg("i'm init!");
 
+        if (at_ps_init(p) == FALSE)
+               return FALSE;
+
        return TRUE;
 }
 
@@ -49,6 +48,8 @@ static void on_unload(TcorePlugin *p)
        if (!p)
                return;
 
+       at_ps_exit(p);
+
        dbg("i'm unload");
 }