root/third_party/libusb/src/libusb/interrupt.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. libusb_interrupt_handle_event

// 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));
}

/* [<][>][^][v][top][bottom][index][help] */