2 * Copyright (c) 2016-2017 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.
16 #ifndef __SA_NETWORK_H__
17 #define __SA_NETWORK_H__
20 * @fn int sa_network_get_state(int conn_state)
21 * @brief This function to get connection state
22 * @param conn_state [out] state of connection
23 * @param conn_type [out] type of connection
24 * @return int return of function
26 int sa_network_get_state(sa_network_state_e * conn_state, sa_network_type_e * conn_type);
29 * @fn int sa_network_activate(sa_network_activate_pararms_s *info)
30 * @brief This function to activate connection with info
31 * @param conn_state [in] activation params for network
32 * @return int return of function
34 int sa_network_activate(sa_network_activate_pararms_s * info);
37 * @fn int sa_network_deactivate(void)
38 * @brief This function to deactivate current connection
39 * @return int return of function
41 int sa_network_deactivate(void);
43 #endif /* __SA_NETWORK_H__ */