Correct some typo and add missing feature define
[platform/core/telephony/tel-plugin-packetservice.git] / src / desc-ps.c
1 /*
2  * tel-plugin-packetservice
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Contact: DongHoo Park <donghoo.park@samsung.com>
7  *                      Arun Shukla <arun.shukla@samsung.com>
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  *
21  */
22
23 #include <stdio.h>
24
25 #include <glib.h>
26
27 #include <tcore.h>
28 #include <plugin.h>
29
30 #include "ps_main.h"
31
32 static gboolean on_load()
33 {
34         dbg("i'm load!");
35
36         return TRUE;
37 }
38
39 static gboolean on_init(TcorePlugin *plugin)
40 {
41         dbg("i'm init!");
42
43         return ps_main_init(plugin);
44 }
45
46 static void on_unload(TcorePlugin *plugin)
47 {
48         dbg("i'm unload!");
49
50         ps_main_exit(plugin);
51 }
52
53 /*
54  * Packet service plug-in descriptor structure
55  */
56 EXPORT_API struct tcore_plugin_define_desc plugin_define_desc = {
57         .name = "PACKETSERVICE",
58         .priority = TCORE_PLUGIN_PRIORITY_MID + 1,
59         .version = 1,
60         .load = on_load,
61         .init = on_init,
62         .unload = on_unload
63 };