]> sigrok.org Git - libsigrok.git/blobdiff - src/backend.c
python: Give all enum values __doc__ strings.
[libsigrok.git] / src / backend.c
index 5d0a0c9396d35eff2a4a58c3da128a0f846ab541..5be826abaa8352d8314f4ef1128e601dde270838 100644 (file)
@@ -18,8 +18,8 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <config.h>
 #include <glib.h>
-#include "config.h" /* Needed for HAVE_LIBUSB_1_0 and others. */
 #include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
@@ -510,6 +510,7 @@ SR_API int sr_init(struct sr_context **ctx)
                goto done;
        }
 #endif
+       sr_resource_set_hooks(context, NULL, NULL, NULL, NULL);
 
        *ctx = context;
        context = NULL;