2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 #ifndef __STC_DEFAULT_CONNECTION_H__
18 #define __STC_DEFAULT_CONNECTION_H__
21 #include "stc-error.h"
22 #include "stc-manager.h"
23 #include "stc-manager-gdbus.h"
24 #include "stc-manager-util.h"
27 * @brief default connection information will be fetched from net-config
30 gchar *path; /* to identify each connection uniquely */
33 stc_iface_type_e type;
35 gboolean roaming; /* cellular profile only else it is always false */
36 } default_connection_s;
38 stc_error_e stc_default_connection_monitor_init(stc_s *stc);
39 stc_error_e stc_default_connection_monitor_deinit(stc_s *stc);
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);
46 #endif /* __STC_DEFAULT_CONNECTION_H__ */