• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/hidapi/0001-hidtest-dont-use-a-C-source-file-since-it-s-pure-C.patch
Thomas PetazzoniThomas Petazzoni committed ae2355a07f225 May 2016
Raw file
Source viewDiff to previous
+       printf("Device Found\n  type: %04hx %04hx\n  path: %s\n  serial_number: %ls", cur_dev->vendor_id, cur_dev->product_id, cur_dev->path, cur_dev->serial_number);
 
1
From 2fb04c2245167e247b95400112b5dbea12fcb206 Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Wed, 30 Dec 2015 20:02:29 +0100
4
Subject: [PATCH] hidtest: dont' use a C++ source file, since it's pure C
5
​
6
This allows to build the test program with toolchains that don't have
7
C++ support.
8
​
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
---
11
 hidtest/Makefile.am |   6 +-
12
 hidtest/hidtest.c   | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++
13
 hidtest/hidtest.cpp | 194 ----------------------------------------------------
14
 3 files changed, 197 insertions(+), 197 deletions(-)
15
 create mode 100644 hidtest/hidtest.c
16
 delete mode 100644 hidtest/hidtest.cpp
17
​
18
diff --git a/hidtest/Makefile.am b/hidtest/Makefile.am
19
index d278644..5f52c3f 100644
20
--- a/hidtest/Makefile.am
21
+++ b/hidtest/Makefile.am
22
@@ -4,17 +4,17 @@ AM_CPPFLAGS = -I$(top_srcdir)/hidapi/
23
 if OS_LINUX
24
 noinst_PROGRAMS = hidtest-libusb hidtest-hidraw
25
 
26
-hidtest_hidraw_SOURCES = hidtest.cpp
27
+hidtest_hidraw_SOURCES = hidtest.c
28
 hidtest_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la
29
 
30
-hidtest_libusb_SOURCES = hidtest.cpp
31
+hidtest_libusb_SOURCES = hidtest.c
32
 hidtest_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la
33
 else
34
 
35
 # Other OS's
36
 noinst_PROGRAMS = hidtest
37
 
38
-hidtest_SOURCES = hidtest.cpp
39
+hidtest_SOURCES = hidtest.c
40
 hidtest_LDADD = $(top_builddir)/$(backend)/libhidapi.la
41
 
42
 endif
43
diff --git a/hidtest/hidtest.c b/hidtest/hidtest.c
44
new file mode 100644
45
index 0000000..94f0a5c
46
--- /dev/null
47
+++ b/hidtest/hidtest.c
48
@@ -0,0 +1,194 @@
49
+/*******************************************************
50
+ Windows HID simplification
51
+
52
+ Alan Ott
53
+ Signal 11 Software
54
+
55
+ 8/22/2009
56
+
57
+ Copyright 2009
58
+ 
59
+ This contents of this file may be used by anyone
60
+ for any reason without any conditions and may be
61
+ used as a starting point for your own applications
62
+ which use HIDAPI.
63
+********************************************************/
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.