Moved exception list to plugin
[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 void stc_plugin_initialize(void)
30 {
31         stc_plugin_exception_init();
32 }
33
34 void stc_plugin_deinitialize(void)
35 {
36         stc_plugin_exception_deinit();
37 }
38
39 API stc_plugin_s stc_plugin = {
40         .initialize_plugin =
41                 stc_plugin_initialize,
42         .deinitialize_plugin =
43                 stc_plugin_deinitialize,
44         .send_warn_message_to_net_popup =
45                 stc_plugin_popup_send_restriction_message,
46         .send_restriction_message_to_net_popup =
47                 stc_plugin_popup_send_restriction_message,
48         .register_state_changed_cb =
49                 stc_plugin_appstatus_register_changed_cb,
50         .deregister_state_changed_cb =
51                 stc_plugin_appstatus_deregister_changed_cb,
52         .fill_exception_list =
53                 stc_plugin_exception_fill_list,
54         .update_exception_list =
55                 stc_plugin_exception_update_list,
56         .check_exception_by_cmdline =
57                 stc_plugin_exception_check_by_cmdline
58 };