[Fix][stack-buffer-overflow] Use gboolean when using g_variant_get for boolean.
[platform/core/connectivity/net-config.git] / gtest / network_state.h
index 8d51d2a..7e33fb2 100755 (executable)
@@ -24,18 +24,18 @@ public:
        NetworkState();
        ~NetworkState();
        error_e AddRoute(const char *ip, const char *mask, const char *interface,
-                       const char *gateway, int family, bool *result);
+                       const char *gateway, int family, gboolean *result);
        error_e RemoveRoute(const char *ip, const char *mask, const char *interface,
-                       const char *gateway, int family, bool *result);
+                       const char *gateway, int family, gboolean *result);
        error_e EthernetCableState(int *state);
        error_e LaunchMdns(const char *name);
        error_e DevicePolicySetWifi(int state);
        error_e DevicePolicyGetWifi(int *state);
        error_e DevicePolicySetWifiProfile(int state);
        error_e DevicePolicyGetWifiProfile(int *state);
-       error_e GetMeteredInfo(bool *state);
+       error_e GetMeteredInfo(gboolean *state);
        error_e PreferredIpv6Address(const char *profile, char *address);
-       error_e GetTCPDumpState(bool *state);
+       error_e GetTCPDumpState(gboolean *state);
        error_e StartTCPDump();
        error_e StopTCPDump();
 };