2 * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd All Rights Reserved
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 __TIZEN_NETWORK_CONNECTION_EXTENSION_H__
18 #define __TIZEN_NETWORK_CONNECTION_EXTENSION_H__
25 * @file connection_extension.h
29 * @brief Start TCP Dump.
31 * @param[in] connection The connection handle
33 * @return @c 0 on success, otherwise a negative error value
34 * @retval #CONNECTION_ERROR_NONE Successful
35 * @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
36 * @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
38 int connection_profile_start_tcpdump(connection_h connection);
41 * @brief Stop TCP Dump.
43 * @param[in] connection The connection handle
45 * @return @c 0 on success, otherwise a negative error value
46 * @retval #CONNECTION_ERROR_NONE Successful
47 * @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
48 * @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
50 int connection_profile_stop_tcpdump(connection_h connection);
53 * @brief Get TCP Dump Running Status.
55 * @param[in] connection The connection handle
56 * @param[out] tcpdump_state The state of tcpdump, tcpdump is in progress or not
58 * @return @c 0 on success, otherwise a negative error value
59 * @retval #CONNECTION_ERROR_NONE Successful
60 * @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
61 * @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
63 int connection_profile_get_tcpdump_state(connection_h connection, gboolean *tcpdump_state);
72 #endif /* __cplusplus */
75 #endif /* __TIZEN_NETWORK_CONNECTION_EXTENSION_H__ */