at_ps: Add template core object to server
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Tue, 11 Dec 2012 10:30:37 +0000 (11:30 +0100)
committerwootak.jung <wootak.jung@samsung.com>
Sun, 24 Mar 2013 06:50:11 +0000 (15:50 +0900)
Change-Id: I8f3e0b80ab073c4022a9929edae0a1a603527a42

src/at_ps.c

index 6d4c24c..88e2d74 100644 (file)
@@ -445,6 +445,7 @@ static struct tcore_ps_operations ps_ops = {
 gboolean at_ps_init(TcorePlugin *p)
 {
        CoreObject *co_ps;
+       Server *server;
 
        co_ps = tcore_ps_new(p, "umts_ps", &ps_ops, NULL);
        if (NULL == co_ps)
@@ -452,6 +453,9 @@ gboolean at_ps_init(TcorePlugin *p)
 
        tcore_object_add_callback(co_ps, "+CGEV", on_cgev_notification, NULL);
 
+       server = tcore_plugin_ref_server(p);
+       tcore_server_add_template_object(server, co_ps);
+
        return TRUE;
 }