Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: third_party/libusb/src/libusb/interrupt.c

Issue 18593002: Usb backend refactor step 2: Separate Usb Device Handle and Usb Device (deprecate) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Separate Usb Device Handle and Usb Device Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libusb/src/libusb/interrupt.c
diff --git a/third_party/libusb/src/libusb/interrupt.c b/third_party/libusb/src/libusb/interrupt.c
new file mode 100644
index 0000000000000000000000000000000000000000..f6912d70ff1ae9988557e07358fe575cb376631f
--- /dev/null
+++ b/third_party/libusb/src/libusb/interrupt.c
@@ -0,0 +1,11 @@
+// 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 "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));
+}
« chrome/browser/usb/usb_service.h ('K') | « third_party/libusb/src/libusb/interrupt.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698