1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-23 22:55:06 +03:00
Commit graph

16 commits

Author SHA1 Message Date
John Keeping
7c51fe5c2d libusbgx: add USBG_VERSION preprocessor symbol
The libusbgx API has changed over time (for example struct
usbg_gadget_strs as changed from fixed-size fields to pointers to char)
which requires that client programs also change.

Sometimes it is not possible to keep applications and libusbgx versions
in lock step and it is desirable to support multiple libusbgx API
versions from a single client code base.

Add a version number which can be used for conditional code in client
applications by doing:

	#if USBG_VERSION < USBG_MAKE_VERSION(0, 2, 0)

Signed-off-by: John Keeping <john@metanate.com>
[Add macro for generating API version]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2018-02-06 16:52:56 +01:00
John Keeping
9e136571aa libusbgx: Allow building without examples
When just using the library, the examples are not needed, so provide a
way to avoid building and installing them.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2016-07-12 16:37:59 +02:00
Krzysztof Opasiak
c1c3f32696 libusbgx: Release libusbgx version 0.1.0
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-23 00:49:03 +01:00
Pawel Szewczyk
cc4e00b0b3 libusbgx: tests: Use new version of cmocka
Deprecated functions of cmocka are no longer used.

Change-Id: If8804103492b089cf033a35d055260452553638e
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 21:45:36 +01:00
Pawel Szewczyk
2fb8405476 libusbgx: Don't link libusbgx with cmkocka
Cmocka is only needed for tests, no need for linking it
with library itself.

Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 21:45:35 +01:00
Krzysztof Opasiak
3133e4c2d3 libusbgx: tests: Add doxygen macros for documenting test cases
Also proceed doxygen config file with autoconf now. Autoconf copy .in file,
substituting found variable values. It allows to specify what documentation
should be build by configure script.

Change-Id: I00cae61aefcc5b6444b0afc0dfe73c5973de34a9
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Rebase and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 21:45:33 +01:00
Krzysztof Opasiak
6dbd9775a8 libusbgx: tests: Build tests with autotools
Change-Id: I1438caf6806d2197bcf20a63b56e33d9243fb2a0
Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description and rebase]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 21:45:29 +01:00
Krzysztof Opasiak
88c5d4a5a0 libusbgx: add --disable-gadget-schemes to configure
This commit adds --disable-gadget-schemes option to configure.
It allows to build libusbgx without libconfig.
This change does not change the API - we add instead empty functions.
The default solution is to use libconfig.

Change-Id: Ia8581fdb6368fb1877e97ee56d91d29e5128611e
Signed-off-by: Przemyslaw Kedzierski <p.kedzierski@samsung.com>
[Rebase and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 21:41:57 +01:00
Krzysztof Opasiak
c306a23ddc libusbgx: Add dependency to libconfig
This library is used to import and export
gadget/function/config to and from file.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Port from libusbg and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 20:42:30 +01:00
Krzysztof Opasiak
56aaff8854 libusbgx: Remove fixed-size buffer from usbg_state.
Path length should not be placed in constant size buffer
but in allocated memory.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Port from libusbg and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 20:35:22 +01:00
Krzysztof Opasiak
c07046b8f5 Fork from libusbg project
As libusbg project looks for a dead for over a year it
has been forked and now it is developed as:

	libusbg-neXt (libusbgx)

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 20:33:32 +01:00
Matt Porter
7e2b04363f libusbg: tag v0.1.0 release
Update changelog and tag the v0.1.0 release.

Signed-off-by: Matt Porter <mporter@linaro.org>
2014-01-21 07:58:24 -05:00
Matt Porter
14949f6764 libusbg: update preferred email address
Update email address for myself throughout the code.

Signed-off-by: Matt Porter <mporter@linaro.org>
2014-01-21 07:58:24 -05:00
Matt Porter
a371518d64 libusbg: rename gadget_*() -> usbg_*(), libusbg, and usbg.h
Rename library to libusbg. Moves the API include to usbg.h and
accordingly changes all API prefixes to usbg_*().

Signed-off-by: Matt Porter <mporter@linaro.org>
2014-01-21 07:58:24 -05:00
Koen Kooi
8b074b73d1 configure: add AM_PROG_AR
This fixes:

| automake: warnings are treated as errors
| /build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: warning: 'libgadget.la': linking libtool libraries using a non-POSIX
| /build/v2012.12/build/tmp-angstrom_v2012_12-eglibc/sysroots/x86_64-linux/usr/share/automake-1.12/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
| src/Makefile.am:1:   while processing Libtool library 'libgadget.la'

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2013-09-05 08:27:31 -04:00
Matt Porter
a6a036a403 Initial release
Signed-off-by: Matt Porter <matt.porter@linaro.org>
2013-09-04 12:51:23 -04:00