Uwe Hermann
176d785d33
Drop trailing whitespace in various files.
2017-06-06 14:10:02 +02:00
Marcus Comstedt
e83a8f4958
Java: Use correct JNI function when calling Vector.add
2016-12-06 21:04:05 +01:00
Uwe Hermann
efde67a107
Doxyfile*: Set GENERATE_TODOLIST to NO.
...
We don't really need or use this. Bugs/issues should go into Bugzilla.
2016-09-26 17:19:24 +02:00
Martin Ling
36bb818d6f
bindings: New configuration enumeration API.
...
The new methods wrap the new libsigrok C API helper functions and eliminate
the need to pass complex types back to the user and wrap them with SWIG.
Fixes bugs #479 and #480 .
2015-12-31 19:00:16 +01:00
Martin Ling
12f2f640cb
bindings: Wrap enum sr_configcap as Capability class.
2015-12-31 18:27:56 +01:00
Marcus Comstedt
ee95d6bd8b
Java: Remove explicit constructor deletes since SWIG 2 doesn't like them
...
bindings/java/org/sigrok/core/classes/classes.i:247: Error: \
Syntax error in input(3).
2015-11-02 18:46:05 +01:00
Marcus Comstedt
e13648d041
Java: Fix leaking global refs
...
This fixes issue #690 .
2015-11-02 18:37:10 +01:00
Marcus Comstedt
c470ae86da
Java: Don't use JNIEnv* captured by lambdas, it may be invalid for the context
2015-11-02 18:37:10 +01:00
Marcus Comstedt
908aad3816
Java: Fill jlongs with 0 when doing SWIG style pointer marshalling
...
This prevents valgrind complaints and also makes pointer comparison
from the Java side work.
2015-11-02 18:37:10 +01:00
Marcus Comstedt
32fd1edc23
Revert "Java: Avoid dangerous writes via casted pointers"
...
This reverts commit 865de99391
.
This fixes bug #688 .
2015-11-02 18:37:10 +01:00
Daniel Elstner
865de99391
Java: Avoid dangerous writes via casted pointers
...
Writing to an object through a pointer of incompatible type is
really evil. Even when the data size matches, it is still a
violation of strict aliasing rules.
Replace all instances by direct casts of the value, without the
unnecessary and dangerous indirection.
2015-10-26 07:29:50 +01:00
Daniel Elstner
b0b0e2009c
SWIG: Avoid unseparated template closing brackets
...
SWIG 2.0.12 fails with a syntax error on ">>".
2015-10-26 07:18:55 +01:00
Martin Ling
f2831ab35b
java: Usable wrapping of Configurable.config_keys().
2015-10-26 07:17:01 +01:00
Martin Ling
8fb7efe203
java: Add docstrings for enum constants.
2015-10-26 07:17:01 +01:00
Daniel Elstner
564d009e88
Java: Remove obsolete SourceCallback interface
2015-10-26 07:11:20 +01:00
Martin Ling
d0fa4ac1e7
java: Don't use SWIG attribute mechanism.
...
Using the attribute mechanism results in badly named wrappers like
getLog_level(), as well as incompletely applied typemaps for templated
container types. If we just avoid this mechanism entirely, we get the
same foo() and set_foo() accessors as we have in the C++ API.
2015-10-24 22:12:41 +02:00
Martin Ling
d4db558810
java: Remove overrides for overloaded methods.
...
These are now wrapped correctly without needing this.
2015-10-24 22:12:41 +02:00
Martin Ling
f3095e7e2e
java: Remove need for conversion methods on container wrappers.
2015-10-24 22:12:41 +02:00
Martin Ling
c7855def61
SWIG: Declare template specialisations for containers before typemaps.
...
It seems this is necessary to correctly apply typemaps involving
these template specialisations.
2015-10-24 22:12:41 +02:00
Uwe Hermann
dd13d47a9e
bindings: Use SR_DF_ANALOG, drop SR_DF_ANALOG_OLD support.
...
All SR_DF_ANALOG_OLD packets are automatically converted to SR_DF_ANALOG
in the session already.
2015-10-21 00:29:29 +02:00
Uwe Hermann
5faebab290
SR_DF_ANALOG_OLD and sr_datafeed_analog_old renames.
...
Rename SR_DF_ANALOG to SR_DF_ANALOG_OLD, and 'struct sr_datafeed_analog'
to 'struct sr_datafeed_analog_old'.
2015-10-20 23:32:45 +02:00
Martin Ling
85aa1b599f
java: Fix SWIG warnings due to dodgy %extend redefinitions.
...
If we're going to %extend these methods, we need to firstly ignore the
originals, and secondly implement all possible argument combinations.
This fixes the rest of bug #417 .
2015-10-20 21:12:29 +01:00
Daniel Elstner
ee9953ef12
session: Make event source injection API private
...
Also remove the corresponding functionality from the bindings.
2015-10-17 17:40:42 +02:00
Uwe Hermann
52ff4f6a04
Rename libsigrokxx to the more common libsigrokcxx.
2015-01-17 18:52:43 +01:00
Aurelien Jacobs
24287ea9e3
Add a public API to list available serial ports.
2015-01-03 17:51:51 +01:00
Uwe Hermann
b71356d631
bindings: Re-enable Java, but ignore create_analog_packet().
...
This will need some fixing.
2014-11-14 16:58:38 +01:00
Martin Ling
7a36ceacb9
bindings: Support per-language extensions to EnumValue wrappers.
2014-11-12 02:27:05 +01:00
Martin Ling
062430a2fb
bindings: Use new %attributevector and %attributemap macros.
2014-11-12 02:27:05 +01:00
Martin Ling
3b16108573
bindings: Remove 'get_' prefix from all accessors.
2014-09-11 21:27:32 +01:00
Martin Ling
ca3291e3ee
Update bindings for new input API.
2014-08-26 01:55:41 +02:00
Marcus Comstedt
33c84e8197
Makefile.am: Fix out-of-tree build for C++ and Java bindings
2014-08-17 12:58:39 +02:00
Uwe Hermann
ac0db24ad4
Doxygen: Silence Doxygen warnings by default.
...
This allows for a clean build per default. Developers can enable
those switches while writing documentation to get a few useful
warnings.
2014-08-10 18:16:07 +02:00
Martin Ling
8a314e90ff
java: Add documentation generation.
2014-08-10 15:47:14 +02:00
Martin Ling
bd4fda2407
bindings: Transfer C++ documentation strings to Python and Java wrappers.
2014-08-10 15:47:13 +02:00
Martin Ling
7a958e2a07
Java: correct input map type in create_output() wrapper.
2014-07-26 21:28:05 +01:00
Martin Ling
90bd765640
Java: Move interfaces into org.sigrok.core.interfaces, tidy build system.
2014-07-26 20:41:08 +01:00
Martin Ling
9455b6df6f
Java: ignore Meta::get_config() due to SWIG typemap issues.
2014-07-26 20:41:08 +01:00
Martin Ling
2928f47d64
bindings: Overhaul packet & payload classes.
2014-07-24 23:42:53 +01:00
Martin Ling
9fcf4d0b5b
Add Java bindings.
2014-07-18 21:34:57 +01:00