b1b4013815e114c628f2157f916ed849a5905515
[platform/core/connectivity/stc-manager.git] / plugin / stc-plugin.c
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #include <errno.h>
18 #include <stdio.h>
19 #include <stdlib.h>
20 #include <string.h>
21 #include <syspopup_caller.h>
22 #include <bundle.h>
23 #include <bundle_internal.h>
24 #include <dlog.h>
25 #include <gio/gio.h>
26
27 #include "stc-plugin.h"
28
29 //LCOV_EXCL_START
30 void stc_plugin_initialize(void)
31 {
32         stc_plugin_exception_init();
33 }
34
35 void stc_plugin_deinitialize(void)
36 {
37         stc_plugin_exception_deinit();
38 }
39
40 API stc_plugin_s stc_plugin = {
41         .initialize_plugin =
42                 stc_plugin_initialize,
43         .deinitialize_plugin =
44                 stc_plugin_deinitialize,
45         .send_warn_message_to_net_popup =
46                 stc_plugin_popup_send_restriction_message,
47         .send_restriction_message_to_net_popup =
48                 stc_plugin_popup_send_restriction_message,
49         .register_state_changed_cb =
50                 stc_plugin_appstatus_register_changed_cb,
51         .deregister_state_changed_cb =
52                 stc_plugin_appstatus_deregister_changed_cb,
53         .fill_exception_list =
54                 stc_plugin_exception_fill_list,
55         .update_exception_list =
56                 stc_plugin_exception_update_list,
57         .check_exception_by_cmdline =
58                 stc_plugin_exception_check_by_cmdline
59 };
60 //LCOV_EXCL_STOP