Added RestrictionThresholdCrossed signal on restriction interface.
[platform/core/connectivity/stc-manager.git] / src / monitor / include / stc-default-connection.h
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 #ifndef __STC_DEFAULT_CONNECTION_H__
18 #define __STC_DEFAULT_CONNECTION_H__
19
20 #include <glib.h>
21 #include "stc-error.h"
22 #include "stc-manager.h"
23 #include "stc-manager-gdbus.h"
24 #include "stc-manager-util.h"
25
26 /**
27  * @brief default connection information will be fetched from net-config
28  */
29 typedef struct {
30         gchar *path; /* to identify each connection uniquely */
31
32         /* profile info */
33         stc_iface_type_e type;
34         gchar *ifname;
35         gboolean roaming; /* cellular profile only else it is always false */
36 } default_connection_s;
37
38 stc_error_e stc_default_connection_monitor_init(stc_s *stc);
39 stc_error_e stc_default_connection_monitor_deinit(stc_s *stc);
40
41 stc_iface_type_e stc_default_connection_get_type(void);
42 gchar *stc_default_connection_get_ifname(void);
43 gboolean stc_default_connection_get_roaming(void);
44 default_connection_s *stc_get_default_connection(void);
45
46 #endif /* __STC_DEFAULT_CONNECTION_H__ */