2 * Copyright (c) 2017 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.
16 #ifndef __NETWORK_STATE_H__
17 #define __NETWORK_STATE_H__
19 #include "network_state.h"
22 class NetworkState:public GDbus {
26 error_e AddRoute(const char *ip, const char *mask, const char *interface,
27 const char *gateway, int family, gboolean *result);
28 error_e RemoveRoute(const char *ip, const char *mask, const char *interface,
29 const char *gateway, int family, gboolean *result);
30 error_e EthernetCableState(int *state);
31 error_e LaunchMdns(const char *name);
32 error_e DevicePolicySetWifi(int state);
33 error_e DevicePolicyGetWifi(int *state);
34 error_e DevicePolicySetWifiProfile(int state);
35 error_e DevicePolicyGetWifiProfile(int *state);
36 error_e GetMeteredInfo(gboolean *state);
37 error_e PreferredIpv6Address(const char *profile, char *address);
38 error_e GetTCPDumpState(gboolean *state);
39 error_e StartTCPDump();
40 error_e StopTCPDump();
44 #endif /* __NETWORK_STATE_H__ */