Create temporary file to check wifi firmware state
[platform/core/connectivity/net-config.git] / include / netdbus.h
index b3e40e4..36ec2ce 100755 (executable)
@@ -29,7 +29,7 @@ extern "C" {
 #endif
 
 #define DBUS_REPLY_TIMEOUT             (120 * 1000)
-#define NETCONFIG_DBUS_REPLY_TIMEOUT   (10 * 1000)
+#define NETCONFIG_DBUS_REPLY_TIMEOUT   (15 * 1000)
 #define DBUS_INTERFACE_PROPERTIES      "org.freedesktop.DBus.Properties"
 
 #define NETCONFIG_SERVICE                              "net.netconfig"
@@ -61,6 +61,10 @@ extern "C" {
 #define NETCONFIG_NETWORK_STATISTICS_PATH      "/net/netconfig/network_statistics"
 #define NETCONFIG_NETWORK_PATH                 "/net/netconfig/network"
 #define NETCONFIG_NETWORK_INTERFACE            "net.netconfig.network"
+#define NETCONFIG_VPNSVC_PATH          "/net/netconfig/vpnsvc"
+#define NETCONFIG_VPNSVC_INTERFACE     "net.netconfig.vpnsvc"
+#define NETCONFIG_MPTCP_PATH           "/net/netconfig/mptcp"
+#define NETCONFIG_MPTCP_INTERFACE      "net.netconfig.mptcp"
 
 #define DBUS_PATH_MAX_BUFLEN           512
 #define DBUS_STATE_MAX_BUFLEN          64
@@ -75,6 +79,8 @@ typedef void (*got_name_cb)(void);
 GDBusObjectManagerServer       *netdbus_get_wifi_manager(void);
 GDBusObjectManagerServer       *netdbus_get_state_manager(void);
 GDBusObjectManagerServer       *netdbus_get_statistics_manager(void);
+GDBusObjectManagerServer       *netdbus_get_vpn_manager(void);
+GDBusObjectManagerServer       *netdbus_get_mptcp_manager(void);
 
 GDBusConnection                                *netdbus_get_connection(void);
 GCancellable                           *netdbus_get_cancellable(void);
@@ -94,6 +100,11 @@ gboolean netconfig_invoke_dbus_method_nonblock(const char *dest, const char *pat
 GVariant *netconfig_invoke_dbus_method(const char *dest, const char *path,
                const char *interface_name, const char *method,
                GVariant *params);
+gboolean netconfig_dbus_emit_signal(const gchar *destination_bus_name,
+               const gchar *object_path,
+               const gchar *interface_name,
+               const gchar *signal_name,
+               GVariant *params);
 
 int            setup_gdbus(got_name_cb cb);
 void   cleanup_gdbus(void);