<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libusb.git/android, branch master</title>
<subtitle>github.com: libusb/libusb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/'/>
<entry>
<title>android: Fix typo and syntax in comments</title>
<updated>2022-03-18T18:16:27+00:00</updated>
<author>
<name>Yegor Yefremov</name>
<email>yegorslists@googlemail.com</email>
</author>
<published>2022-02-12T14:07:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=0d9731ef67da17f3ab606a4b41d4acf64b3d4f69'/>
<id>0d9731ef67da17f3ab606a4b41d4acf64b3d4f69</id>
<content type='text'>
Fix a typo and add missing commas.

Also, delete a blank line at the end of the file and
use /* */ for comments consistently.

Closes #1071

Signed-off-by: Yegor Yefremov &lt;yegorslists@googlemail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix a typo and add missing commas.

Also, delete a blank line at the end of the file and
use /* */ for comments consistently.

Closes #1071

Signed-off-by: Yegor Yefremov &lt;yegorslists@googlemail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: Add example for unrooted Android</title>
<updated>2021-11-01T23:20:26+00:00</updated>
<author>
<name>Peter-St</name>
<email>stoiber.peter@aon.at</email>
</author>
<published>2020-12-30T21:07:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=f33c9562a1dd7a0cb333fcd9a670ba14fbbfbc0e'/>
<id>f33c9562a1dd7a0cb333fcd9a670ba14fbbfbc0e</id>
<content type='text'>
Closes #830
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #830
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix various typos in docs/comments</title>
<updated>2021-10-31T16:44:55+00:00</updated>
<author>
<name>luz paz</name>
<email>luzpaz@users.noreply.github.com</email>
</author>
<published>2021-10-30T21:15:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=14d3bde10f8363f156ef72036d08dbf91f53b980'/>
<id>14d3bde10f8363f156ef72036d08dbf91f53b980</id>
<content type='text'>
Found via `codespell -q 3`

Closes #1015
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Found via `codespell -q 3`

Closes #1015
</pre>
</div>
</content>
</entry>
<entry>
<title>Update Android Readme</title>
<updated>2021-09-23T08:52:11+00:00</updated>
<author>
<name>Peter-St</name>
<email>stoiber.peter@aon.at</email>
</author>
<published>2020-12-21T20:47:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=35b3a52188757ddd1aaa64c7639ad1a0e86ab4b1'/>
<id>35b3a52188757ddd1aaa64c7639ad1a0e86ab4b1</id>
<content type='text'>
Add another approach for connecting USB devices on Android.

References #830
Closes #996
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add another approach for connecting USB devices on Android.

References #830
Closes #996
</pre>
</div>
</content>
</entry>
<entry>
<title>Android build name correction</title>
<updated>2021-09-23T08:51:48+00:00</updated>
<author>
<name>xloem</name>
<email>0xloem@gmail.com</email>
</author>
<published>2021-08-04T10:38:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=42407102fd8c12cc631974bce7c776061a5da873'/>
<id>42407102fd8c12cc631974bce7c776061a5da873</id>
<content type='text'>
Fixes #31

See #143 and #596 for solutions to the whole build system.

Closes #971
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #31

See #143 and #596 for solutions to the whole build system.

Closes #971
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Prepare config.h for inclusion in examples/tests</title>
<updated>2020-11-27T23:22:29+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2020-11-27T23:22:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=f2e551a5ff03325505bf90796887d4fc0093a99b'/>
<id>f2e551a5ff03325505bf90796887d4fc0093a99b</id>
<content type='text'>
There are certain games played in the examples and tests source to
account for differences in build environments and target platforms. This
can be simplified by including config.h and using the definitions there.

To that end, move the printf function attribute definition from
libusbi.h to config.h and leverage it where it is used in the examples
and tests.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There are certain games played in the examples and tests source to
account for differences in build environments and target platforms. This
can be simplified by including config.h and using the definitions there.

To that end, move the printf function attribute definition from
libusbi.h to config.h and leverage it where it is used in the examples
and tests.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Fix Android and Xcode compilation errors/warnings</title>
<updated>2020-11-16T21:03:52+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2020-11-16T21:03:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=9d23ed25b44ae351eaf839805722d6796f9b018a'/>
<id>9d23ed25b44ae351eaf839805722d6796f9b018a</id>
<content type='text'>
Commit f69548c3b3 ("examples: Enable all examples to build on all
platforms") modified dpfp and sam3u_benchmark to be buildable on any
platform, however there were some oversights and regressions introduced
for Android and Xcode.

Update the Android and Xcode build files to account for the removal of
dpfp_threaded.c as well as the inclusion of config.h from examples
and/or tests source.

Additionally switch the threaded version of dpfp to use sem_open()
instead of sem_init() as the latter is in fact deprecated on MacOS.

Closes #808

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit f69548c3b3 ("examples: Enable all examples to build on all
platforms") modified dpfp and sam3u_benchmark to be buildable on any
platform, however there were some oversights and regressions introduced
for Android and Xcode.

Update the Android and Xcode build files to account for the removal of
dpfp_threaded.c as well as the inclusion of config.h from examples
and/or tests source.

Additionally switch the threaded version of dpfp to use sem_open()
instead of sem_init() as the latter is in fact deprecated on MacOS.

Closes #808

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: Merge events and threads into single platform abstraction</title>
<updated>2020-09-13T05:44:28+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2020-08-26T22:42:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=da5df37c4d1a2841c6f9cdc626386d096f5f312d'/>
<id>da5df37c4d1a2841c6f9cdc626386d096f5f312d</id>
<content type='text'>
The split between events and threads abstractions is unnecessary.
Simplify the library by merging the two into a "platform" abstraction.
The only meaningful change is that Cygwin builds will no longer use the
POSIX threads abstraction but will instead use the native Windows one.

The downside to doing this is that the dpfp_threaded example program
will no longer be available on Cygwin builds. This should be fine, and
future work will make dpfp_threaded available for all forms of Windows
build systems.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The split between events and threads abstractions is unnecessary.
Simplify the library by merging the two into a "platform" abstraction.
The only meaningful change is that Cygwin builds will no longer use the
POSIX threads abstraction but will instead use the native Windows one.

The downside to doing this is that the dpfp_threaded example program
will no longer be available on Cygwin builds. This should be fine, and
future work will make dpfp_threaded available for all forms of Windows
build systems.

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>core: Introduce platform events abstraction</title>
<updated>2020-08-12T23:06:38+00:00</updated>
<author>
<name>Chris Dickens</name>
<email>christopher.a.dickens@gmail.com</email>
</author>
<published>2020-08-12T23:06:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=d67eb5beaa44c17c09f089a522ff483f4978a978'/>
<id>d67eb5beaa44c17c09f089a522ff483f4978a978</id>
<content type='text'>
The way in which system handles or resources are represented differs
greatly between Unix-like operating systems and Windows. Ever since
Windows support was added to libusb, Windows been emulating principles
of Unix-like operating systems such as file descriptors and poll().

This commit introduces an abstraction layer that completely removes the
need to perform any emulation. Fundamentally there are three things that
each platform provides to libusb:

  1) A signallable event
  2) A timer (not required, but useful)
  3) A means to wait for event sources such as the above to be triggered

The POSIX abstraction for Unix-like operating systems uses file
descriptors as the "handles" to the underlying system resources. The
signallable event is implemented using a pipe, the timer as a timerfd
(where supported) and the poll() system call is used to wait for events.

The Windows abstraction uses native HANDLEs as the "handles" to the
underlying system resources. The signallable event is implemented using
a manual-reset event, the timer as a manual-reset waitable timer, and
the WaitForMultipleObjects() system call is used to wait for events.

Closes #252

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The way in which system handles or resources are represented differs
greatly between Unix-like operating systems and Windows. Ever since
Windows support was added to libusb, Windows been emulating principles
of Unix-like operating systems such as file descriptors and poll().

This commit introduces an abstraction layer that completely removes the
need to perform any emulation. Fundamentally there are three things that
each platform provides to libusb:

  1) A signallable event
  2) A timer (not required, but useful)
  3) A means to wait for event sources such as the above to be triggered

The POSIX abstraction for Unix-like operating systems uses file
descriptors as the "handles" to the underlying system resources. The
signallable event is implemented using a pipe, the timer as a timerfd
(where supported) and the poll() system call is used to wait for events.

The Windows abstraction uses native HANDLEs as the "handles" to the
underlying system resources. The signallable event is implemented using
a manual-reset event, the timer as a manual-reset waitable timer, and
the WaitForMultipleObjects() system call is used to wait for events.

Closes #252

Signed-off-by: Chris Dickens &lt;christopher.a.dickens@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Android: fixes unknown warning option from ndk build</title>
<updated>2020-04-17T16:41:55+00:00</updated>
<author>
<name>Aaron Luft</name>
<email>aluft@logitech.com</email>
</author>
<published>2020-04-17T15:30:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/libusb.git/commit/?id=71a3fb3faadb79c2ccff8f23f0520e4015f547f3'/>
<id>71a3fb3faadb79c2ccff8f23f0520e4015f547f3</id>
<content type='text'>
A command line option is not correct.
Fix by spelling the option correctly.

BEFORE

[x86] Compile        : xusb &lt;= xusb.c
warning: unknown warning option '-Werror=unintialized'; did you mean '-Werror=uninitialized'? [-Wunknown-warning-option]

AFTER

[x86] Compile        : xusb &lt;= xusb.c
[x86] Executable     : xusb
[x86] Install        : xusb =&gt; libs/x86/xusb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A command line option is not correct.
Fix by spelling the option correctly.

BEFORE

[x86] Compile        : xusb &lt;= xusb.c
warning: unknown warning option '-Werror=unintialized'; did you mean '-Werror=uninitialized'? [-Wunknown-warning-option]

AFTER

[x86] Compile        : xusb &lt;= xusb.c
[x86] Executable     : xusb
[x86] Install        : xusb =&gt; libs/x86/xusb
</pre>
</div>
</content>
</entry>
</feed>
