summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyuho Jo <kyuho.jo@samsung.com>2016-05-10 12:18:34 +0900
committerKyuho Jo <kyuho.jo@samsung.com>2016-06-01 08:29:12 +0900
commitcf2ddf69a4487f2c0f9590add9dca90c20e1d6a5 (patch)
tree9bf2ed66d776b14250f1bd7c2f65f4b8b61ebd6b
parentcbf881c56718003d8306d01ca56b1b4092ca7d57 (diff)
downloadair_mediahub-cf2ddf69a4487f2c0f9590add9dca90c20e1d6a5.tar.gz
air_mediahub-cf2ddf69a4487f2c0f9590add9dca90c20e1d6a5.tar.bz2
air_mediahub-cf2ddf69a4487f2c0f9590add9dca90c20e1d6a5.zip
Changes for getting parameters of DBUS signalsubmit/tizen/20160601.045250accepted/tizen/tv/20160602.022823
By notice from deviced team, added code for handling new arguments of "DeviceChanged" signal. Change-Id: Iaf30f98bbdeb34d31abe7831bfc9d9ac179f2fe8 Signed-off-by: Kyuho Jo <kyuho.jo@samsung.com>
-rw-r--r--src/util/usb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/usb.c b/src/util/usb.c
index 90fafb1..781f1ea 100644
--- a/src/util/usb.c
+++ b/src/util/usb.c
@@ -21,7 +21,7 @@
#include "util/usb.h"
-#define DEVICED_INTERFACE_BLOCK "org.tizen.system.deviced.Block"
+#define DEVICED_INTERFACE_BLOCK "org.tizen.system.storage.Block"
#define SIGNAL_DEVICE_BLOCKED "DeviceBlocked"
#define SIGNAL_DEVICE_CHANGED "DeviceChanged"
@@ -98,7 +98,7 @@ static void _device_changed_cb(GDBusConnection *connection,
const gchar *dev_node, *sys_path;
const gchar *fs_usage, *fs_type, *fs_ver, *fs_uuid;
const gchar *mount_point;
- gint32 block_type, read_only, state;
+ gint32 block_type, read_only, state, flags, storage_id;
gboolean primary;
struct usb *m;
int sig;
@@ -110,10 +110,10 @@ static void _device_changed_cb(GDBusConnection *connection,
m = user_data;
- g_variant_get(parameters, "(issssssisib)", &block_type, &dev_node,
+ g_variant_get(parameters, "(issssssisibii)", &block_type, &dev_node,
&sys_path, &fs_usage, &fs_type, &fs_ver,
&fs_uuid, &read_only, &mount_point,
- &state, &primary);
+ &state, &primary, &flags, &storage_id);
sig = E_DEVICE_CHANGED;