Create temporary file to check wifi firmware state
[platform/core/connectivity/net-config.git] / include / netdbus.h
index 64849bc..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
@@ -70,13 +74,16 @@ typedef enum {
        NETCONFIG_DBUS_RESULT_DEFAULT_TECHNOLOGY,
 } netconfig_dbus_result_type;
 
-typedef void (*netconfig_got_name_cb)(void);
+typedef void (*got_name_cb)(void);
 
-GDBusObjectManagerServer *netconfig_get_wifi_manager(void);
-GDBusObjectManagerServer *netconfig_get_state_manager(void);
-GDBusObjectManagerServer *netconfig_get_statistics_manager(void);
-GDBusConnection *netconfig_gdbus_get_connection(void);
-GCancellable *netconfig_gdbus_get_gdbus_cancellable(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);
 void netconfig_gdbus_pending_call_ref(void);
 void netconfig_gdbus_pending_call_unref(void);
 int netconfig_create_gdbus_call(GDBusConnection *conn);
@@ -93,9 +100,14 @@ 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 netconfig_setup_gdbus(netconfig_got_name_cb cb);
-void netconfig_cleanup_gdbus(void);
+int            setup_gdbus(got_name_cb cb);
+void   cleanup_gdbus(void);
 
 #ifdef __cplusplus
 }