961b11d22bc3b2f8743bc25bd9d9a62f22972d8e
[platform/core/api/connection.git] / include / connection_extension.h
1 /*
2  * Copyright (c) 2011-2013 Samsung Electronics Co., Ltd All Rights Reserved
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 __TIZEN_NETWORK_CONNECTION_EXTENSION_H__
18 #define __TIZEN_NETWORK_CONNECTION_EXTENSION_H__
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /**
25  * @file connection_extension.h
26  */
27
28 /**
29  * @brief Start TCP Dump.
30  *
31  * @param[in] connection        The connection handle
32  *
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
37 */
38 int connection_profile_start_tcpdump(connection_h connection);
39
40 /**
41  * @brief Stop TCP Dump.
42  *
43  * @param[in] connection        The connection handle
44  *
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
49 */
50 int connection_profile_stop_tcpdump(connection_h connection);
51
52 /**
53  * @brief Get TCP Dump Running Status.
54  *
55  * @param[in] connection        The connection handle
56  * @param[out] tcpdump_state    The state of tcpdump, tcpdump is in progress or not
57  *
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
62 */
63 int connection_profile_get_tcpdump_state(connection_h connection, gboolean *tcpdump_state);
64
65 /**
66 * @}
67 */
68
69
70 #ifdef __cplusplus
71 }
72 #endif /* __cplusplus */
73
74
75 #endif /* __TIZEN_NETWORK_CONNECTION_EXTENSION_H__ */