1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include <stdlib.h> 6 7 #include "libusbi.h" 8 libusb_interrupt_handle_event(struct libusb_context * ctx)9int API_EXPORTED libusb_interrupt_handle_event(struct libusb_context* ctx) { 10 unsigned char dummy = 1; 11 USBI_GET_CONTEXT(ctx); 12 return usbi_write(ctx->ctrl_pipe[1], &dummy, sizeof(dummy)); 13 } 14