Hello community,

here is the log from the commit of package libgusb for openSUSE:Factory checked 
in at 2017-09-09 20:22:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgusb (Old)
 and      /work/SRC/openSUSE:Factory/.libgusb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgusb"

Sat Sep  9 20:22:57 2017 rev:16 rq:521787 version:0.2.11

Changes:
--------
--- /work/SRC/openSUSE:Factory/libgusb/libgusb.changes  2017-06-18 
13:49:04.449931984 +0200
+++ /work/SRC/openSUSE:Factory/.libgusb.new/libgusb.changes     2017-09-09 
20:22:59.532050356 +0200
@@ -1,0 +2,7 @@
+Wed Sep  6 20:08:26 UTC 2017 - [email protected]
+
+- Update to version 0.2.11:
+  + New Features: Add g_usb_context_set_flags().
+  + Bugfix: Fix the actual required GLib version.
+
+-------------------------------------------------------------------

Old:
----
  libgusb-0.2.10.tar.xz

New:
----
  libgusb-0.2.11.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libgusb.spec ++++++
--- /var/tmp/diff_new_pack.GtvTkf/_old  2017-09-09 20:23:00.207955085 +0200
+++ /var/tmp/diff_new_pack.GtvTkf/_new  2017-09-09 20:23:00.211954521 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           libgusb
-Version:        0.2.10
+Version:        0.2.11
 Release:        0
 Summary:        GObject-based library for libusb1
 License:        LGPL-2.1+
@@ -26,7 +26,7 @@
 Source0:        
http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
 BuildRequires:  vala
 BuildRequires:  xz
-BuildRequires:  pkgconfig(glib-2.0) >= 2.38.0
+BuildRequires:  pkgconfig(glib-2.0) >= 2.44.0
 BuildRequires:  pkgconfig(gobject-introspection-1.0) >= 1.29
 BuildRequires:  pkgconfig(gudev-1.0)
 BuildRequires:  pkgconfig(libusb-1.0) >= 1.0.19

++++++ libgusb-0.2.10.tar.xz -> libgusb-0.2.11.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/Makefile.in 
new/libgusb-0.2.11/Makefile.in
--- old/libgusb-0.2.10/Makefile.in      2017-03-24 16:46:16.000000000 +0100
+++ new/libgusb-0.2.11/Makefile.in      2017-06-08 17:34:56.000000000 +0200
@@ -169,7 +169,7 @@
        $(top_srcdir)/build-aux/ltmain.sh \
        $(top_srcdir)/build-aux/missing AUTHORS COPYING ChangeLog \
        INSTALL NEWS README TODO build-aux/compile \
-       build-aux/config.guess build-aux/config.sub \
+       build-aux/config.guess build-aux/config.sub build-aux/depcomp \
        build-aux/install-sh build-aux/ltmain.sh build-aux/missing
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 distdir = $(PACKAGE)-$(VERSION)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/NEWS new/libgusb-0.2.11/NEWS
--- old/libgusb-0.2.10/NEWS     2017-04-10 15:31:37.000000000 +0200
+++ new/libgusb-0.2.11/NEWS     2017-07-24 11:59:19.000000000 +0200
@@ -1,3 +1,13 @@
+Version 0.2.11
+~~~~~~~~~~~~~~
+Released: 2017-07-24
+
+New Features:
+ - Add g_usb_context_set_flags() (Richard Hughes)
+
+Bugfixes:
+ - Fix the actual required GLib version (Richard Hughes)
+
 Version 0.2.10
 ~~~~~~~~~~~~~~
 Released: 2017-04-10
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/aclocal.m4 
new/libgusb-0.2.11/aclocal.m4
--- old/libgusb-0.2.10/aclocal.m4       2017-03-24 16:46:15.000000000 +0100
+++ new/libgusb-0.2.11/aclocal.m4       2017-06-08 17:34:55.000000000 +0200
@@ -117,9 +117,9 @@
   _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
 ])
 
-dnl pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
-dnl serial 11 (pkg-config-0.29.1)
-dnl
+# pkg.m4 - Macros to locate and utilise pkg-config.   -*- Autoconf -*-
+# serial 11 (pkg-config-0.29.1)
+
 dnl Copyright © 2004 Scott James Remnant <[email protected]>.
 dnl Copyright © 2012-2015 Dan Nicholson <[email protected]>
 dnl
@@ -393,6 +393,74 @@
 AS_VAR_IF([$1], [""], [$5], [$4])dnl
 ])dnl PKG_CHECK_VAR
 
+dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
+dnl   [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
+dnl   [DESCRIPTION], [DEFAULT])
+dnl ------------------------------------------
+dnl
+dnl Prepare a "--with-" configure option using the lowercase
+dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
+dnl PKG_CHECK_MODULES in a single macro.
+AC_DEFUN([PKG_WITH_MODULES],
+[
+m4_pushdef([with_arg], m4_tolower([$1]))
+
+m4_pushdef([description],
+           [m4_default([$5], [build with ]with_arg[ support])])
+
+m4_pushdef([def_arg], [m4_default([$6], [auto])])
+m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
+m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
+
+m4_case(def_arg,
+            [yes],[m4_pushdef([with_without], [--without-]with_arg)],
+            [m4_pushdef([with_without],[--with-]with_arg)])
+
+AC_ARG_WITH(with_arg,
+     AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
+    [AS_TR_SH([with_]with_arg)=def_arg])
+
+AS_CASE([$AS_TR_SH([with_]with_arg)],
+            [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
+            [auto],[PKG_CHECK_MODULES([$1],[$2],
+                                        [m4_n([def_action_if_found]) $3],
+                                        [m4_n([def_action_if_not_found]) $4])])
+
+m4_popdef([with_arg])
+m4_popdef([description])
+m4_popdef([def_arg])
+
+])dnl PKG_WITH_MODULES
+
+dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
+dnl   [DESCRIPTION], [DEFAULT])
+dnl -----------------------------------------------
+dnl
+dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
+dnl check._[VARIABLE-PREFIX] is exported as make variable.
+AC_DEFUN([PKG_HAVE_WITH_MODULES],
+[
+PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
+
+AM_CONDITIONAL([HAVE_][$1],
+               [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
+])dnl PKG_HAVE_WITH_MODULES
+
+dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
+dnl   [DESCRIPTION], [DEFAULT])
+dnl ------------------------------------------------------
+dnl
+dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
+dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
+dnl and preprocessor variable.
+AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
+[
+PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
+
+AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
+        [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
+])dnl PKG_HAVE_DEFINE_WITH_MODULES
+
 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
 #
 # This file is free software; the Free Software Foundation
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/config.h new/libgusb-0.2.11/config.h
--- old/libgusb-0.2.10/config.h 2016-11-09 10:11:44.000000000 +0100
+++ new/libgusb-0.2.11/config.h 2017-04-13 18:24:36.000000000 +0200
@@ -44,7 +44,7 @@
 #define PACKAGE_NAME "libgusb"
 
 /* Define to the full name and version of this package. */
-#define PACKAGE_STRING "libgusb 0.2.10"
+#define PACKAGE_STRING "libgusb 0.2.11"
 
 /* Define to the one symbol short name of this package. */
 #define PACKAGE_TARNAME "libgusb"
@@ -53,10 +53,10 @@
 #define PACKAGE_URL ""
 
 /* Define to the version of this package. */
-#define PACKAGE_VERSION "0.2.10"
+#define PACKAGE_VERSION "0.2.11"
 
 /* Define to 1 if you have the ANSI C header files. */
 #define STDC_HEADERS 1
 
 /* Version number of package */
-#define VERSION "0.2.10"
+#define VERSION "0.2.11"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/configure new/libgusb-0.2.11/configure
--- old/libgusb-0.2.10/configure        2017-03-24 16:46:15.000000000 +0100
+++ new/libgusb-0.2.11/configure        2017-06-08 17:34:56.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for libgusb 0.2.10.
+# Generated by GNU Autoconf 2.69 for libgusb 0.2.11.
 #
 # Report bugs to <http://www.hughsie.com>.
 #
@@ -590,8 +590,8 @@
 # Identity of this package.
 PACKAGE_NAME='libgusb'
 PACKAGE_TARNAME='libgusb'
-PACKAGE_VERSION='0.2.10'
-PACKAGE_STRING='libgusb 0.2.10'
+PACKAGE_VERSION='0.2.11'
+PACKAGE_STRING='libgusb 0.2.11'
 PACKAGE_BUGREPORT='http://www.hughsie.com'
 PACKAGE_URL=''
 
@@ -1380,7 +1380,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures libgusb 0.2.10 to adapt to many kinds of systems.
+\`configure' configures libgusb 0.2.11 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1450,7 +1450,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of libgusb 0.2.10:";;
+     short | recursive ) echo "Configuration of libgusb 0.2.11:";;
    esac
   cat <<\_ACEOF
 
@@ -1582,7 +1582,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-libgusb configure 0.2.10
+libgusb configure 0.2.11
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1860,7 +1860,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by libgusb $as_me 0.2.10, which was
+It was created by libgusb $as_me 0.2.11, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2728,7 +2728,7 @@
 
 # Define the identity of the package.
  PACKAGE='libgusb'
- VERSION='0.2.10'
+ VERSION='0.2.11'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -3438,7 +3438,7 @@
 # use this in cd-version.h
 G_USB_MAJOR_VERSION=0
 G_USB_MINOR_VERSION=2
-G_USB_MICRO_VERSION=10
+G_USB_MICRO_VERSION=11
 
 
 
@@ -13030,12 +13030,12 @@
     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists 
--print-errors \"glib-2.0 >= 2.38.0 gobject-2.0 gthread-2.0 gio-2.0\""; } >&5
-  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0 gobject-2.0 
gthread-2.0 gio-2.0") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists 
--print-errors \"glib-2.0 >= 2.44.0 gobject-2.0 gthread-2.0 gio-2.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.44.0 gobject-2.0 
gthread-2.0 gio-2.0") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0 gobject-2.0 
gthread-2.0 gio-2.0" 2>/dev/null`
+  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.44.0 gobject-2.0 
gthread-2.0 gio-2.0" 2>/dev/null`
                      test "x$?" != "x0" && pkg_failed=yes
 else
   pkg_failed=yes
@@ -13047,12 +13047,12 @@
     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  elif test -n "$PKG_CONFIG"; then
     if test -n "$PKG_CONFIG" && \
-    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists 
--print-errors \"glib-2.0 >= 2.38.0 gobject-2.0 gthread-2.0 gio-2.0\""; } >&5
-  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0 gobject-2.0 
gthread-2.0 gio-2.0") 2>&5
+    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists 
--print-errors \"glib-2.0 >= 2.44.0 gobject-2.0 gthread-2.0 gio-2.0\""; } >&5
+  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.44.0 gobject-2.0 
gthread-2.0 gio-2.0") 2>&5
   ac_status=$?
   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; then
-  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0 gobject-2.0 
gthread-2.0 gio-2.0" 2>/dev/null`
+  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.44.0 gobject-2.0 
gthread-2.0 gio-2.0" 2>/dev/null`
                      test "x$?" != "x0" && pkg_failed=yes
 else
   pkg_failed=yes
@@ -13073,14 +13073,14 @@
         _pkg_short_errors_supported=no
 fi
         if test $_pkg_short_errors_supported = yes; then
-               GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors 
--cflags --libs "glib-2.0 >= 2.38.0 gobject-2.0 gthread-2.0 gio-2.0" 2>&1`
+               GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors 
--cflags --libs "glib-2.0 >= 2.44.0 gobject-2.0 gthread-2.0 gio-2.0" 2>&1`
         else
-               GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs 
"glib-2.0 >= 2.38.0 gobject-2.0 gthread-2.0 gio-2.0" 2>&1`
+               GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs 
"glib-2.0 >= 2.44.0 gobject-2.0 gthread-2.0 gio-2.0" 2>&1`
         fi
        # Put the nasty error message in config.log where it belongs
        echo "$GLIB_PKG_ERRORS" >&5
 
-       as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0 gobject-2.0 
gthread-2.0 gio-2.0) were not met:
+       as_fn_error $? "Package requirements (glib-2.0 >= 2.44.0 gobject-2.0 
gthread-2.0 gio-2.0) were not met:
 
 $GLIB_PKG_ERRORS
 
@@ -13788,7 +13788,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by libgusb $as_me 0.2.10, which was
+This file was extended by libgusb $as_me 0.2.11, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -13854,7 +13854,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-libgusb config.status 0.2.10
+libgusb config.status 0.2.11
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/configure.ac 
new/libgusb-0.2.11/configure.ac
--- old/libgusb-0.2.10/configure.ac     2016-03-21 11:53:31.000000000 +0100
+++ new/libgusb-0.2.11/configure.ac     2017-06-08 17:23:16.000000000 +0200
@@ -3,7 +3,7 @@
 
 m4_define([gusb_major_version], [0])
 m4_define([gusb_minor_version], [2])
-m4_define([gusb_micro_version], [10])
+m4_define([gusb_micro_version], [11])
 m4_define([gusb_version],
           [gusb_major_version.gusb_minor_version.gusb_micro_version])
 
@@ -98,7 +98,7 @@
 dnl ---------------------------------------------------------------------------
 dnl - Check library dependencies
 dnl ---------------------------------------------------------------------------
-PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.38.0 gobject-2.0 gthread-2.0 gio-2.0)
+PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.44.0 gobject-2.0 gthread-2.0 gio-2.0)
 PKG_CHECK_MODULES(USB, libusb-1.0 >= 1.0.19)
 
 dnl ---------------------------------------------------------------------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/gusb-sections.txt 
new/libgusb-0.2.11/docs/api/gusb-sections.txt
--- old/libgusb-0.2.10/docs/api/gusb-sections.txt       2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/gusb-sections.txt       2017-07-24 
12:00:15.000000000 +0200
@@ -5,8 +5,11 @@
 GUsbContext
 GUsbContextClass
 GUsbContextError
+GUsbContextFlags
 g_usb_context_error_quark
 g_usb_context_new
+g_usb_context_set_flags
+g_usb_context_get_flags
 g_usb_context_get_source
 g_usb_context_get_main_context
 g_usb_context_set_main_context
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/GUsbContext.html 
new/libgusb-0.2.11/docs/api/html/GUsbContext.html
--- old/libgusb-0.2.10/docs/api/html/GUsbContext.html   2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/GUsbContext.html   2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>GUsbContext: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="libgusb.html" title="libgusb GObject library">
 <link rel="prev" href="libgusb.html" title="libgusb GObject library">
@@ -61,6 +61,22 @@
 </tr>
 <tr>
 <td class="function_type">
+<span class="returnvalue">void</span>
+</td>
+<td class="function_name">
+<a class="link" href="GUsbContext.html#g-usb-context-set-flags" 
title="g_usb_context_set_flags ()">g_usb_context_set_flags</a> <span 
class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
+<a class="link" href="GUsbContext.html#GUsbContextFlags" title="enum 
GUsbContextFlags"><span class="returnvalue">GUsbContextFlags</span></a>
+</td>
+<td class="function_name">
+<a class="link" href="GUsbContext.html#g-usb-context-get-flags" 
title="g_usb_context_get_flags ()">g_usb_context_get_flags</a> <span 
class="c_punctuation">()</span>
+</td>
+</tr>
+<tr>
+<td class="function_type">
 <a class="link" href="gusb-gusb-source.html#GUsbSource" 
title="GUsbSource"><span class="returnvalue">GUsbSource</span></a> *
 </td>
 <td class="function_name">
@@ -211,6 +227,10 @@
 <td class="function_name"><a class="link" 
href="GUsbContext.html#GUsbContextError" title="enum 
GUsbContextError">GUsbContextError</a></td>
 </tr>
 <tr>
+<td class="datatype_keyword">enum</td>
+<td class="function_name"><a class="link" 
href="GUsbContext.html#GUsbContextFlags" title="enum 
GUsbContextFlags">GUsbContextFlags</a></td>
+</tr>
+<tr>
 <td class="datatype_keyword"> </td>
 <td class="function_name"><a class="link" 
href="GUsbContext.html#GUsbContextPrivate" 
title="GUsbContextPrivate">GUsbContextPrivate</a></td>
 </tr>
@@ -261,19 +281,78 @@
 </colgroup>
 <tbody><tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr></tbody>
 </table></div>
 </div>
 <div class="refsect3">
 <a name="g-usb-context-new.returns"></a><h4>Returns</h4>
-<p> a new <a class="link" href="GUsbContext.html" title="GUsbContext"><code 
class="literal">GUsbContext</code></a> object or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> on error.</p>
+<p> a new <a class="link" href="GUsbContext.html" title="GUsbContext"><code 
class="literal">GUsbContext</code></a> object or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> on error.</p>
 </div>
 <p class="since">Since: 0.1.0</p>
 </div>
 <hr>
 <div class="refsect2">
+<a name="g-usb-context-set-flags"></a><h3>g_usb_context_set_flags ()</h3>
+<pre class="programlisting"><span class="returnvalue">void</span>
+g_usb_context_set_flags (<em class="parameter"><code><a class="link" 
href="GUsbContext.html" title="GUsbContext"><span 
class="type">GUsbContext</span></a> *context</code></em>,
+                         <em class="parameter"><code><a class="link" 
href="GUsbContext.html#GUsbContextFlags" title="enum GUsbContextFlags"><span 
class="type">GUsbContextFlags</span></a> flags</code></em>);</pre>
+<p>Sets the flags to use for the context. These should be set before
+<a class="link" href="GUsbContext.html#g-usb-context-enumerate" 
title="g_usb_context_enumerate ()"><code 
class="function">g_usb_context_enumerate()</code></a> is called.</p>
+<div class="refsect3">
+<a name="g-usb-context-set-flags.parameters"></a><h4>Parameters</h4>
+<div class="informaltable"><table class="informaltable" width="100%" 
border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="parameter_name"><p>context</p></td>
+<td class="parameter_description"><p>a <a class="link" href="GUsbContext.html" 
title="GUsbContext"><span class="type">GUsbContext</span></a></p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+<tr>
+<td class="parameter_name"><p>flags</p></td>
+<td class="parameter_description"><p>some <a class="link" 
href="GUsbContext.html#GUsbContextFlags" title="enum GUsbContextFlags"><span 
class="type">GUsbContextFlags</span></a>, e.g. <a class="link" 
href="GUsbContext.html#G-USB-CONTEXT-FLAGS-AUTO-OPEN-DEVICES:CAPS"><code 
class="literal">G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES</code></a></p></td>
+<td class="parameter_annotations"> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+<p class="since">Since: 0.2.11</p>
+</div>
+<hr>
+<div class="refsect2">
+<a name="g-usb-context-get-flags"></a><h3>g_usb_context_get_flags ()</h3>
+<pre class="programlisting"><a class="link" 
href="GUsbContext.html#GUsbContextFlags" title="enum GUsbContextFlags"><span 
class="returnvalue">GUsbContextFlags</span></a>
+g_usb_context_get_flags (<em class="parameter"><code><a class="link" 
href="GUsbContext.html" title="GUsbContext"><span 
class="type">GUsbContext</span></a> *context</code></em>);</pre>
+<p>Sets the flags to use for the context.</p>
+<div class="refsect3">
+<a name="g-usb-context-get-flags.parameters"></a><h4>Parameters</h4>
+<div class="informaltable"><table class="informaltable" width="100%" 
border="0">
+<colgroup>
+<col width="150px" class="parameters_name">
+<col class="parameters_description">
+<col width="200px" class="parameters_annotations">
+</colgroup>
+<tbody><tr>
+<td class="parameter_name"><p>context</p></td>
+<td class="parameter_description"><p>a <a class="link" href="GUsbContext.html" 
title="GUsbContext"><span class="type">GUsbContext</span></a></p></td>
+<td class="parameter_annotations"> </td>
+</tr></tbody>
+</table></div>
+</div>
+<div class="refsect3">
+<a name="g-usb-context-get-flags.returns"></a><h4>Returns</h4>
+<p> the <a class="link" href="GUsbContext.html#GUsbContextFlags" title="enum 
GUsbContextFlags"><span class="type">GUsbContextFlags</span></a>, e.g. <a 
class="link" 
href="GUsbContext.html#G-USB-CONTEXT-FLAGS-AUTO-OPEN-DEVICES:CAPS"><code 
class="literal">G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES</code></a></p>
+</div>
+<p class="since">Since: 0.2.11</p>
+</div>
+<hr>
+<div class="refsect2">
 <a name="g-usb-context-get-source"></a><h3>g_usb_context_get_source ()</h3>
 <pre class="programlisting"><a class="link" 
href="gusb-gusb-source.html#GUsbSource" title="GUsbSource"><span 
class="returnvalue">GUsbSource</span></a> *
 g_usb_context_get_source (<em class="parameter"><code><a class="link" 
href="GUsbContext.html" title="GUsbContext"><span 
class="type">GUsbContext</span></a> *context</code></em>,
@@ -296,7 +375,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>main_ctx</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-The-Main-Event-Loop.html#GMainContext"><span
 class="type">GMainContext</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-The-Main-Event-Loop.html#GMainContext"><span
 class="type">GMainContext</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -482,7 +561,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -490,7 +569,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-context-find-by-bus-address.returns"></a><h4>Returns</h4>
-<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
+<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.2.2</p>
@@ -530,7 +609,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -538,7 +617,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-context-find-by-vid-pid.returns"></a><h4>Returns</h4>
-<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
+<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.2.2</p>
@@ -572,7 +651,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -580,7 +659,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-context-find-by-platform-id.returns"></a><h4>Returns</h4>
-<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
+<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.2.4</p>
@@ -623,7 +702,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -631,7 +710,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-context-wait-for-replug.returns"></a><h4>Returns</h4>
-<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for invalid. </p>
+<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for invalid. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.2.9</p>
@@ -680,6 +759,33 @@
 </table></div>
 </div>
 </div>
+<hr>
+<div class="refsect2">
+<a name="GUsbContextFlags"></a><h3>enum GUsbContextFlags</h3>
+<p>The flags to use for the context.</p>
+<div class="refsect3">
+<a name="GUsbContextFlags.members"></a><h4>Members</h4>
+<div class="informaltable"><table class="informaltable" width="100%" 
border="0">
+<colgroup>
+<col width="300px" class="enum_members_name">
+<col class="enum_members_description">
+<col width="200px" class="enum_members_annotations">
+</colgroup>
+<tbody>
+<tr>
+<td class="enum_member_name"><p><a 
name="G-USB-CONTEXT-FLAGS-NONE:CAPS"></a>G_USB_CONTEXT_FLAGS_NONE</p></td>
+<td> </td>
+<td> </td>
+</tr>
+<tr>
+<td class="enum_member_name"><p><a 
name="G-USB-CONTEXT-FLAGS-AUTO-OPEN-DEVICES:CAPS"></a>G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES</p></td>
+<td> </td>
+<td> </td>
+</tr>
+</tbody>
+</table></div>
+</div>
+</div>
 <hr>
 <div class="refsect2">
 <a name="GUsbContextPrivate"></a><h3>GUsbContextPrivate</h3>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/GUsbDevice.html 
new/libgusb-0.2.11/docs/api/html/GUsbDevice.html
--- old/libgusb-0.2.10/docs/api/html/GUsbDevice.html    2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/GUsbDevice.html    2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>GUsbDevice: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="libgusb.html" title="libgusb GObject library">
 <link rel="prev" href="gusb-gusb-source.html" title="gusb-source">
@@ -515,7 +515,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-device-get-parent.returns"></a><h4>Returns</h4>
-<p> <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a>. </p>
+<p> <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a>. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.2.4</p>
@@ -733,7 +733,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-device-get-vid-as-str.returns"></a><h4>Returns</h4>
-<p> an string ID, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not available.</p>
+<p> an string ID, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not available.</p>
 </div>
 <p class="since">Since: 0.2.4</p>
 </div>
@@ -760,7 +760,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-device-get-pid-as-str.returns"></a><h4>Returns</h4>
-<p> an string ID, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not available.</p>
+<p> an string ID, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not available.</p>
 </div>
 <p class="since">Since: 0.2.4</p>
 </div>
@@ -969,7 +969,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1025,7 +1025,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1033,7 +1033,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-device-get-interface.returns"></a><h4>Returns</h4>
-<p> a <a class="link" href="gusb-gusb-interface.html#GUsbInterface"><span 
class="type">GUsbInterface</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for not found. </p>
+<p> a <a class="link" href="gusb-gusb-interface.html#GUsbInterface"><span 
class="type">GUsbInterface</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for not found. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.2.8</p>
@@ -1061,7 +1061,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1069,7 +1069,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-device-get-interfaces.returns"></a><h4>Returns</h4>
-<p> an array of interfaces or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for error. </p>
+<p> an array of interfaces or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for error. </p>
 <p><span class="annotation">[<a 
href="http://foldoc.org/transfer%20container";><span class="acronym">transfer 
container</span></a>][<a href="http://foldoc.org/element-type";><span 
class="acronym">element-type</span></a> GUsbInterface]</span></p>
 </div>
 <p class="since">Since: 0.2.8</p>
@@ -1098,7 +1098,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1133,7 +1133,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1172,7 +1172,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1207,7 +1207,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1249,7 +1249,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1296,7 +1296,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1343,7 +1343,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1390,7 +1390,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1427,7 +1427,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1505,7 +1505,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>actual_length</p></td>
-<td class="parameter_description"><p>the actual number of bytes sent, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>the actual number of bytes sent, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
@@ -1517,12 +1517,12 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>cancellable</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1580,7 +1580,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>actual_length</p></td>
-<td class="parameter_description"><p>the actual number of bytes sent, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>the actual number of bytes sent, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
@@ -1592,12 +1592,12 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>cancellable</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1655,7 +1655,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>actual_length</p></td>
-<td class="parameter_description"><p>the actual number of bytes sent, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>the actual number of bytes sent, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
@@ -1667,12 +1667,12 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>cancellable</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1736,7 +1736,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>cancellable</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
@@ -1784,7 +1784,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1848,7 +1848,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>cancellable</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
@@ -1896,7 +1896,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -1960,7 +1960,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>cancellable</p></td>
-<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>a <a 
href="/usr/share/gtk-doc/html/gioGCancellable.html#GCancellable-struct"><span 
class="type">GCancellable</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 <tr>
@@ -2009,7 +2009,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/GUsbDeviceList.html 
new/libgusb-0.2.11/docs/api/html/GUsbDeviceList.html
--- old/libgusb-0.2.10/docs/api/html/GUsbDeviceList.html        2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/GUsbDeviceList.html        2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>GUsbDeviceList: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="libgusb.html" title="libgusb GObject library">
 <link rel="prev" href="GUsbDevice.html" title="GUsbDevice">
@@ -275,7 +275,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -283,7 +283,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-device-list-find-by-bus-address.returns"></a><h4>Returns</h4>
-<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
+<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.1.0</p>
@@ -324,7 +324,7 @@
 </tr>
 <tr>
 <td class="parameter_name"><p>error</p></td>
-<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
+<td class="parameter_description"><p>A <a 
href="/usr/share/gtk-doc/html/glibglib-Error-Reporting.html#GError"><span 
class="type">GError</span></a> or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a></p></td>
 <td class="parameter_annotations"> </td>
 </tr>
 </tbody>
@@ -332,7 +332,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-device-list-find-by-vid-pid.returns"></a><h4>Returns</h4>
-<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
+<p> a new <a class="link" href="GUsbDevice.html" title="GUsbDevice"><span 
class="type">GUsbDevice</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> if not found. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20full";><span 
class="acronym">transfer full</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.1.0</p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/faq.html 
new/libgusb-0.2.11/docs/api/html/faq.html
--- old/libgusb-0.2.10/docs/api/html/faq.html   2017-04-10 15:32:54.000000000 
+0200
+++ new/libgusb-0.2.11/docs/api/html/faq.html   2017-07-24 12:00:15.000000000 
+0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>Frequently asked questions: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="index.html" title="GUsb Reference Manual">
 <link rel="prev" href="gusb-gusb-version.html" title="gusb-version">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/libgusb-0.2.10/docs/api/html/gusb-gusb-interface.html 
new/libgusb-0.2.11/docs/api/html/gusb-gusb-interface.html
--- old/libgusb-0.2.10/docs/api/html/gusb-gusb-interface.html   2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/gusb-gusb-interface.html   2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>gusb-interface: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="libgusb.html" title="libgusb GObject library">
 <link rel="prev" href="GUsbDeviceList.html" title="GUsbDeviceList">
@@ -388,7 +388,7 @@
 </div>
 <div class="refsect3">
 <a name="g-usb-interface-get-extra.returns"></a><h4>Returns</h4>
-<p> a <a href="/usr/share/gtk-doc/html/glibglib-Byte-Arrays.html#GBytes"><span 
class="type">GBytes</span></a>, or <a 
href="/usr/share/gtk-doc/html/liboilliboil-liboiljunk.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for failure. </p>
+<p> a <a href="/usr/share/gtk-doc/html/glibglib-Byte-Arrays.html#GBytes"><span 
class="type">GBytes</span></a>, or <a 
href="/usr/share/gtk-doc/html/glibglib-Standard-Macros.html#NULL:CAPS"><code 
class="literal">NULL</code></a> for failure. </p>
 <p><span class="annotation">[<a href="http://foldoc.org/transfer%20none";><span 
class="acronym">transfer none</span></a>]</span></p>
 </div>
 <p class="since">Since: 0.2.8</p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/gusb-gusb-source.html 
new/libgusb-0.2.11/docs/api/html/gusb-gusb-source.html
--- old/libgusb-0.2.10/docs/api/html/gusb-gusb-source.html      2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/gusb-gusb-source.html      2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>gusb-source: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="libgusb.html" title="libgusb GObject library">
 <link rel="prev" href="GUsbContext.html" title="GUsbContext">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/gusb-gusb-version.html 
new/libgusb-0.2.11/docs/api/html/gusb-gusb-version.html
--- old/libgusb-0.2.10/docs/api/html/gusb-gusb-version.html     2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/gusb-gusb-version.html     2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>gusb-version: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="libgusb-helpers.html" title="libgusb glib helpers">
 <link rel="prev" href="libgusb-helpers.html" title="libgusb glib helpers">
@@ -101,7 +101,7 @@
 <hr>
 <div class="refsect2">
 <a name="G-USB-MICRO-VERSION:CAPS"></a><h3>G_USB_MICRO_VERSION</h3>
-<pre class="programlisting">#define G_USB_MICRO_VERSION                (10)
+<pre class="programlisting">#define G_USB_MICRO_VERSION                (11)
 </pre>
 <p>The compile-time micro version</p>
 </div>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/gusb.devhelp2 
new/libgusb-0.2.11/docs/api/html/gusb.devhelp2
--- old/libgusb-0.2.10/docs/api/html/gusb.devhelp2      2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/gusb.devhelp2      2017-07-24 
12:00:15.000000000 +0200
@@ -25,6 +25,8 @@
   <functions>
     <keyword type="function" name="g_usb_context_error_quark ()" 
link="GUsbContext.html#g-usb-context-error-quark" since="0.1.0"/>
     <keyword type="function" name="g_usb_context_new ()" 
link="GUsbContext.html#g-usb-context-new" since="0.1.0"/>
+    <keyword type="function" name="g_usb_context_set_flags ()" 
link="GUsbContext.html#g-usb-context-set-flags" since="0.2.11"/>
+    <keyword type="function" name="g_usb_context_get_flags ()" 
link="GUsbContext.html#g-usb-context-get-flags" since="0.2.11"/>
     <keyword type="function" name="g_usb_context_get_source ()" 
link="GUsbContext.html#g-usb-context-get-source" deprecated="" since="0.1.0"/>
     <keyword type="function" name="g_usb_context_get_main_context ()" 
link="GUsbContext.html#g-usb-context-get-main-context" since="0.2.5"/>
     <keyword type="function" name="g_usb_context_set_main_context ()" 
link="GUsbContext.html#g-usb-context-set-main-context" since="0.2.5"/>
@@ -39,6 +41,7 @@
     <keyword type="struct" name="struct GUsbContext" 
link="GUsbContext.html#GUsbContext-struct"/>
     <keyword type="struct" name="struct GUsbContextClass" 
link="GUsbContext.html#GUsbContextClass"/>
     <keyword type="enum" name="enum GUsbContextError" 
link="GUsbContext.html#GUsbContextError"/>
+    <keyword type="enum" name="enum GUsbContextFlags" 
link="GUsbContext.html#GUsbContextFlags"/>
     <keyword type="struct" name="GUsbContextPrivate" 
link="GUsbContext.html#GUsbContextPrivate"/>
     <keyword type="property" name="The “debug-level” property" 
link="GUsbContext.html#GUsbContext--debug-level"/>
     <keyword type="property" name="The “libusb-context” property" 
link="GUsbContext.html#GUsbContext--libusb-context"/>
@@ -128,6 +131,8 @@
     <keyword type="macro" name="G_USB_MINOR_VERSION" 
link="gusb-gusb-version.html#G-USB-MINOR-VERSION:CAPS"/>
     <keyword type="macro" name="G_USB_MICRO_VERSION" 
link="gusb-gusb-version.html#G-USB-MICRO-VERSION:CAPS"/>
     <keyword type="constant" name="G_USB_CONTEXT_ERROR_INTERNAL" 
link="GUsbContext.html#G-USB-CONTEXT-ERROR-INTERNAL:CAPS"/>
+    <keyword type="constant" name="G_USB_CONTEXT_FLAGS_NONE" 
link="GUsbContext.html#G-USB-CONTEXT-FLAGS-NONE:CAPS"/>
+    <keyword type="constant" name="G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES" 
link="GUsbContext.html#G-USB-CONTEXT-FLAGS-AUTO-OPEN-DEVICES:CAPS"/>
     <keyword type="constant" name="G_USB_SOURCE_ERROR_INTERNAL" 
link="gusb-gusb-source.html#G-USB-SOURCE-ERROR-INTERNAL:CAPS"/>
     <keyword type="constant" name="G_USB_DEVICE_DIRECTION_DEVICE_TO_HOST" 
link="GUsbDevice.html#G-USB-DEVICE-DIRECTION-DEVICE-TO-HOST:CAPS"/>
     <keyword type="constant" name="G_USB_DEVICE_DIRECTION_HOST_TO_DEVICE" 
link="GUsbDevice.html#G-USB-DEVICE-DIRECTION-HOST-TO-DEVICE:CAPS"/>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/index.html 
new/libgusb-0.2.11/docs/api/html/index.html
--- old/libgusb-0.2.10/docs/api/html/index.html 2017-04-10 15:32:54.000000000 
+0200
+++ new/libgusb-0.2.11/docs/api/html/index.html 2017-07-24 12:00:15.000000000 
+0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>GUsb Reference Manual: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="next" href="specification.html" title="GUSB Specification">
 <meta name="generator" content="GTK-Doc V1.25 (XML mode)">
@@ -23,7 +23,7 @@
           </p></div></div>
 </div></div></div>
 <div><p class="releaseinfo">
-      for GUsb 0.2.10
+      for GUsb 0.2.11
 
     </p></div>
 <div><p class="copyright">Copyright © 2011 Richard Hughes</p></div>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/introduction.html 
new/libgusb-0.2.11/docs/api/html/introduction.html
--- old/libgusb-0.2.10/docs/api/html/introduction.html  2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/introduction.html  2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>GUSB Introduction: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="specification.html" title="GUSB Specification">
 <link rel="prev" href="specification.html" title="GUSB Specification">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/libgusb-helpers.html 
new/libgusb-0.2.11/docs/api/html/libgusb-helpers.html
--- old/libgusb-0.2.10/docs/api/html/libgusb-helpers.html       2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/libgusb-helpers.html       2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>libgusb glib helpers: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="index.html" title="GUsb Reference Manual">
 <link rel="prev" href="gusb-gusb-interface.html" title="gusb-interface">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/libgusb.html 
new/libgusb-0.2.11/docs/api/html/libgusb.html
--- old/libgusb-0.2.10/docs/api/html/libgusb.html       2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/libgusb.html       2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>libgusb GObject library: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="index.html" title="GUsb Reference Manual">
 <link rel="prev" href="introduction.html" title="GUSB Introduction">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/html/specification.html 
new/libgusb-0.2.11/docs/api/html/specification.html
--- old/libgusb-0.2.10/docs/api/html/specification.html 2017-04-10 
15:32:54.000000000 +0200
+++ new/libgusb-0.2.11/docs/api/html/specification.html 2017-07-24 
12:00:15.000000000 +0200
@@ -3,7 +3,7 @@
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>GUSB Specification: GUsb Reference Manual</title>
-<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
+<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
 <link rel="home" href="index.html" title="GUsb Reference Manual">
 <link rel="up" href="index.html" title="GUsb Reference Manual">
 <link rel="prev" href="index.html" title="GUsb Reference Manual">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/docs/api/version.xml 
new/libgusb-0.2.11/docs/api/version.xml
--- old/libgusb-0.2.10/docs/api/version.xml     2017-03-24 16:46:18.000000000 
+0100
+++ new/libgusb-0.2.11/docs/api/version.xml     2017-06-08 17:34:59.000000000 
+0200
@@ -1 +1 @@
-0.2.10
+0.2.11
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/gusb/gusb-context.c 
new/libgusb-0.2.11/gusb/gusb-context.c
--- old/libgusb-0.2.10/gusb/gusb-context.c      2017-03-27 10:10:01.000000000 
+0200
+++ new/libgusb-0.2.11/gusb/gusb-context.c      2017-07-24 11:57:16.000000000 
+0200
@@ -64,6 +64,7 @@
        volatile gint                    thread_event_run;
        guint                            hotplug_poll_id;
        int                              debug_level;
+       GUsbContextFlags                 flags;
        libusb_context                  *ctx;
        libusb_hotplug_callback_handle   hotplug_id;
 };
@@ -324,6 +325,15 @@
                goto out;
        }
 
+       /* auto-open */
+       if (priv->flags & G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES) {
+               if (!_g_usb_device_open_internal (device, &error)) {
+                       g_warning ("cannot open the device: %s", 
error->message);
+                       g_error_free (error);
+                       goto out;
+               }
+       }
+
        /* add to enumerated list */
        g_ptr_array_add (priv->devices, g_object_ref (device));
 
@@ -527,6 +537,38 @@
        priv->done_enumerate = TRUE;
 }
 
+/**
+ * g_usb_context_set_flags:
+ * @context: a #GUsbContext
+ * @flags: some #GUsbContextFlags, e.g. %G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES
+ *
+ * Sets the flags to use for the context. These should be set before
+ * g_usb_context_enumerate() is called.
+ *
+ * Since: 0.2.11
+ **/
+void
+g_usb_context_set_flags (GUsbContext *context, GUsbContextFlags flags)
+{
+       context->priv->flags = flags;
+}
+
+/**
+ * g_usb_context_get_flags:
+ * @context: a #GUsbContext
+ *
+ * Sets the flags to use for the context.
+ *
+ * Return value: the #GUsbContextFlags, e.g. 
%G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES
+ *
+ * Since: 0.2.11
+ **/
+GUsbContextFlags
+g_usb_context_get_flags (GUsbContext *context)
+{
+       return context->priv->flags;
+}
+
 static gpointer
 g_usb_context_event_thread_cb (gpointer data)
 {
@@ -545,6 +587,7 @@
        GUsbContextPrivate *priv;
 
        priv = context->priv = g_usb_context_get_instance_private (context);
+       priv->flags = G_USB_CONTEXT_FLAGS_NONE;
        priv->devices = g_ptr_array_new_with_free_func ((GDestroyNotify) 
g_object_unref);
        priv->dict_usb_ids = g_hash_table_new_full (g_str_hash, g_str_equal, 
g_free, g_free);
        priv->dict_replug = g_hash_table_new_full (g_str_hash, g_str_equal,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/gusb/gusb-context.h 
new/libgusb-0.2.11/gusb/gusb-context.h
--- old/libgusb-0.2.10/gusb/gusb-context.h      2016-03-11 09:25:06.000000000 
+0100
+++ new/libgusb-0.2.11/gusb/gusb-context.h      2017-07-23 22:05:55.000000000 
+0200
@@ -63,11 +63,27 @@
        G_USB_CONTEXT_ERROR_INTERNAL
 } GUsbContextError;
 
+/**
+ * GUsbContextFlags:
+ *
+ * The flags to use for the context.
+ **/
+typedef enum {
+       G_USB_CONTEXT_FLAGS_NONE                = 0,
+       G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES   = 1 << 0,
+       /*< private >*/
+       G_USB_CONTEXT_FLAGS_LAST
+} GUsbContextFlags;
+
 GType           g_usb_context_get_type                 (void);
 GQuark          g_usb_context_error_quark              (void);
 
 GUsbContext    *g_usb_context_new                      (GError         
**error);
 
+void            g_usb_context_set_flags                (GUsbContext    
*context,
+                                                        GUsbContextFlags 
flags);
+GUsbContextFlags g_usb_context_get_flags               (GUsbContext    
*context);
+
 G_DEPRECATED
 GUsbSource     *g_usb_context_get_source               (GUsbContext    
*context,
                                                         GMainContext   
*main_ctx);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/gusb/gusb-device-private.h 
new/libgusb-0.2.11/gusb/gusb-device-private.h
--- old/libgusb-0.2.10/gusb/gusb-device-private.h       2015-04-22 
11:55:07.000000000 +0200
+++ new/libgusb-0.2.11/gusb/gusb-device-private.h       2017-07-23 
22:05:55.000000000 +0200
@@ -30,6 +30,8 @@
                                                  GError        **error);
 
 libusb_device  *_g_usb_device_get_device       (GUsbDevice     *device);
+gboolean        _g_usb_device_open_internal    (GUsbDevice     *device,
+                                                GError         **error);
 
 G_END_DECLS
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/gusb/gusb-device.c 
new/libgusb-0.2.11/gusb/gusb-device.c
--- old/libgusb-0.2.10/gusb/gusb-device.c       2017-03-24 17:36:54.000000000 
+0100
+++ new/libgusb-0.2.11/gusb/gusb-device.c       2017-07-24 11:57:49.000000000 
+0200
@@ -390,6 +390,26 @@
                                 g_usb_device_get_pid (device));
 }
 
+gboolean
+_g_usb_device_open_internal (GUsbDevice *device, GError **error)
+{
+       gint rc;
+
+       if (device->priv->handle != NULL) {
+               g_set_error (error,
+                            G_USB_DEVICE_ERROR,
+                            G_USB_DEVICE_ERROR_ALREADY_OPEN,
+                            "Device %04x:%04x is already open",
+                            g_usb_device_get_vid (device),
+                            g_usb_device_get_pid (device));
+               return FALSE;
+       }
+
+       /* open device */
+       rc = libusb_open (device->priv->device, &device->priv->handle);
+       return g_usb_device_libusb_error_to_gerror (device, rc, error);
+}
+
 /**
  * g_usb_device_open:
  * @device: a #GUsbDevice
@@ -404,27 +424,17 @@
  * Since: 0.1.0
  **/
 gboolean
-g_usb_device_open (GUsbDevice  *device,
-                   GError     **error)
+g_usb_device_open (GUsbDevice *device, GError **error)
 {
-       gint rc;
-
        g_return_val_if_fail (G_USB_IS_DEVICE (device), FALSE);
        g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
-       if (device->priv->handle != NULL) {
-               g_set_error (error,
-                            G_USB_DEVICE_ERROR,
-                            G_USB_DEVICE_ERROR_ALREADY_OPEN,
-                            "Device %04x:%04x is already open",
-                            g_usb_device_get_vid (device),
-                            g_usb_device_get_pid (device));
-               return FALSE;
-       }
+       /* ignore */
+       if (g_usb_context_get_flags (device->priv->context) & 
G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES)
+               return TRUE;
 
-       /* open device */
-       rc = libusb_open (device->priv->device, &device->priv->handle);
-       return g_usb_device_libusb_error_to_gerror (device, rc, error);
+       /* open */
+       return _g_usb_device_open_internal (device, error);
 }
 
 /**
@@ -608,6 +618,10 @@
        g_return_val_if_fail (G_USB_IS_DEVICE (device), FALSE);
        g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
 
+       /* ignore */
+       if (g_usb_context_get_flags (device->priv->context) & 
G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES)
+               return TRUE;
+
        if (device->priv->handle == NULL)
                return g_usb_device_not_open_error (device, error);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/gusb/gusb-version.h 
new/libgusb-0.2.11/gusb/gusb-version.h
--- old/libgusb-0.2.10/gusb/gusb-version.h      2017-03-24 16:46:18.000000000 
+0100
+++ new/libgusb-0.2.11/gusb/gusb-version.h      2017-06-08 17:34:59.000000000 
+0200
@@ -53,7 +53,7 @@
  *
  * The compile-time micro version
  */
-#define G_USB_MICRO_VERSION            (10)
+#define G_USB_MICRO_VERSION            (11)
 
 /**
  * G_USB_CHECK_VERSION:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/gusb/libgusb.ver 
new/libgusb-0.2.11/gusb/libgusb.ver
--- old/libgusb-0.2.10/gusb/libgusb.ver 2016-05-31 10:33:53.000000000 +0200
+++ new/libgusb-0.2.11/gusb/libgusb.ver 2017-07-23 22:05:55.000000000 +0200
@@ -62,3 +62,9 @@
   global:
     g_usb_context_wait_for_replug;
 } LIBGUSB_0.2.8;
+
+LIBGUSB_0.2.11 {
+  global:
+    g_usb_context_set_flags;
+    g_usb_context_get_flags;
+} LIBGUSB_0.2.9;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/libgusb-0.2.10/tools/gusb-main.c 
new/libgusb-0.2.11/tools/gusb-main.c
--- old/libgusb-0.2.10/tools/gusb-main.c        2016-03-11 09:25:06.000000000 
+0100
+++ new/libgusb-0.2.11/tools/gusb-main.c        2017-07-23 22:05:55.000000000 
+0200
@@ -158,6 +158,32 @@
        return g_string_free (string, FALSE);
 }
 
+static void
+gusb_main_device_open (GUsbDevice *device)
+{
+       GError *error = NULL;
+       guint8 idx;
+
+       /* open */
+       if (!g_usb_device_open (device, &error)) {
+               g_print ("failed to open: %s\n", error->message);
+               g_error_free (error);
+               return;
+       }
+
+       /* print info we can only get whilst open */
+       idx = g_usb_device_get_product_index (device);
+       if (idx != 0x00) {
+               gchar *product = g_usb_device_get_string_descriptor (device, 
idx, &error);
+               if (product == NULL) {
+                       g_print ("failed to get string desc: %s\n", 
error->message);
+                       g_error_free (error);
+                       return;
+               }
+               g_print ("product: %s\n", product);
+       }
+}
+
 /**
  * gusb_device_list_added_cb:
  **/
@@ -170,6 +196,7 @@
                 g_usb_device_get_platform_id (device),
                 g_usb_device_get_bus (device),
                 g_usb_device_get_address (device));
+       gusb_main_device_open (device);
 }
 
 /**
@@ -339,6 +366,7 @@
                         g_usb_device_get_platform_id (device),
                         g_usb_device_get_bus (device),
                         g_usb_device_get_address (device));
+               gusb_main_device_open (device);
        }
 
        loop = g_main_loop_new (NULL, FALSE);
@@ -478,6 +506,7 @@
 
        /* GUsbContext */
        priv->usb_ctx = g_usb_context_new (NULL);
+       g_usb_context_set_flags (priv->usb_ctx, 
G_USB_CONTEXT_FLAGS_AUTO_OPEN_DEVICES);
 
        /* add commands */
        priv->cmd_array = g_ptr_array_new_with_free_func ((GDestroyNotify) 
gusb_cmd_item_free);


Reply via email to