5b72d99970be373887e4ce474ea30775e9065536
[platform/core/connectivity/net-config.git] / include / plugin.h
1 /*
2  * Network Configuration Module
3  *
4  * Copyright (c) 2017 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __NETCONFIG_PLUGIN_H__
21 #define __NETCONFIG_PLUGIN_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include <glib.h>
28
29 #define NETCONFIG_ADD_FOUND_AP_NOTI             "add_found_ap_noti"
30 #define NETCONFIG_DEL_FOUND_AP_NOTI             "del_found_ap_noti"
31 #define NETCONFIG_ADD_PORTAL_NOTI               "add_portal_noti"
32 #define NETCONFIG_DEL_PORTAL_NOTI               "del_portal_noti"
33
34 struct netconfig_headed_plugin_t {
35         void(*pop_device_picker) (void);
36         gboolean(*send_notification_to_net_popup) (const char *, const char *);
37         int(*send_message_to_net_popup) (const char *, const char *, const char *, const char *);
38         int(*send_restriction_to_net_popup) (const char *, const char *, const char *);
39         void(*set_system_event) (int, int, int);
40         void(*pop_wifi_connected_poppup) (const char *);
41 };
42
43 typedef enum {
44         SYS_EVT_NETWORK_STATUS = 0,
45         SYS_EVT_WIFI_STATE = 1,
46         EKEY_NETWORK_STATUS = 10,
47         EKEY_WIFI_STATE = 11,
48         EVAL_NETWORK_WIFI = 20,
49         EVAL_NETWORK_CELLULAR = 21,
50         EVAL_NETWORK_ETHERNET = 22,
51         EVAL_NETWORK_BT = 23,
52         EVAL_NETWORK_DISCONNECTED = 24,
53         EVAL_WIFI_CONNECTED = 25,
54         EVAL_WIFI_ON = 26,
55         EVAL_WIFI_OFF = 27,
56 } sys_evt_t;
57
58 #ifdef __cplusplus
59 }
60 #endif
61
62 #endif /* __NETCONFIG_PLUGIN_H__ */