diff options
author | Richard Hughes <richard@hughsie.com> | 2014-11-19 16:29:29 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-19 16:29:29 +0000 |
commit | d48ecafdd3404dc4a12bee2e4362ecc59fe4732f (patch) | |
tree | 6e22fbc7044d39529bd86edff34ca32babc887d4 /tools/gusb-main.c | |
parent | 474b8d55d61f55b24f50a92ee3e49669f91d2c6b (diff) | |
download | gusb-d48ecafdd3404dc4a12bee2e4362ecc59fe4732f.tar.gz |
Use the native hotplug support in libusb 1.0.19
Diffstat (limited to 'tools/gusb-main.c')
-rw-r--r-- | tools/gusb-main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gusb-main.c b/tools/gusb-main.c index 7837c29..2c26bd5 100644 --- a/tools/gusb-main.c +++ b/tools/gusb-main.c @@ -236,6 +236,9 @@ gusb_cmd_watch (GUsbCmdPrivate *priv, gchar **values, GError **error) g_usb_device_get_address (device)); } + /* setup with the default mainloop */ + g_usb_context_get_source (priv->usb_ctx, NULL); + loop = g_main_loop_new (NULL, FALSE); g_signal_connect (list, "device-added", G_CALLBACK (gusb_device_list_added_cb), |