blob: 59221f51ca8ca7e3c6d6f993d3027c119cb8e1f3 [file] [log] [blame]
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdlib.h>
#include "libusbi.h"
int API_EXPORTED libusb_interrupt_handle_event(struct libusb_context* ctx) {
unsigned char dummy = 1;
USBI_GET_CONTEXT(ctx);
return usbi_write(ctx->ctrl_pipe[1], &dummy, sizeof(dummy));
}