Merge "Fix bug in Ip conflict set/get enabled API's" into tizen
[platform/core/connectivity/net-config.git] / include / network-dump.h
1 /*
2  * Network Configuration Module
3  *
4  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19
20 #ifndef __NETCONFIG_NETWORK_DUMP_H__
21 #define __NETCONFIG_NETWORK_DUMP_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 #include <sys/time.h>
27
28 #define DUMP_SERVICE_BUS_NAME           "org.tizen.system.dumpservice"
29 #define DUMP_SERVICE_OBJECT_PATH        "/Org/Tizen/System/DumpService"
30 #define DUMP_SERVICE_INTERFACE          "org.tizen.system.dumpservice"
31
32 #define DUMP_SIGNAL                    "Dump"
33 #define DUMP_START_SIGNAL              "Start"
34 #define DUMP_FINISH_SIGNAL             "Finish"
35
36 #define NETWORK_LOG_PATH "/opt/usr/data/network"
37 #define KILLALL_EXEC_PATH "/usr/bin/killall"
38 #define TCPDUMP_EXEC_PATH "/usr/sbin/tcpdump"
39
40 gboolean handle_start_tcpdump(Tcpdump *object, GDBusMethodInvocation *context);
41 gboolean handle_stop_tcpdump(Tcpdump *object, GDBusMethodInvocation *context);
42 gboolean handle_get_tcpdump_state(Tcpdump *object, GDBusMethodInvocation *context);
43 int netconfig_dump_log(const char *path);
44 void check_dump_state_and_start(void);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif