Martin Ling
ace872d529
C++: Declare namespace in enums.hpp so it can be used independently.
2015-10-26 07:17:01 +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
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
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
Daniel Elstner
782b16447b
log: Remove sr_log_logdomain_{get,set} from the API
...
The confusingly named sr_log_logdomain_set() simply set a global
string prefixed to the log message by the default log callback.
This is pretty much useless, misleadingly named, and not used by
either sigrok-cli or PulseView.
2015-09-13 12:08:54 +02:00
Daniel Elstner
5a3e34285d
setup.py: Do VPATH search for swig/enums.i
...
Also, in swig/classes.i include swig/enums.i rather than plain
enums.i, to guard against future name clashes.
2015-08-16 18:28:13 +02:00
Daniel Elstner
8b2a184327
Build: Prefix directory to include of enums.hpp
...
This fixes a build problem due to the reduced include search paths
introduced by my recent changes. Also fix a couple of other
includes to use angle brackets.
2015-08-16 18:28:13 +02:00
Uwe Hermann
161dc24d84
cxx: Rename include/libsigrok/ to include/libsigrokcxx/.
2015-01-17 20:26:14 +01:00
Uwe Hermann
1b40fdb881
Rename libsigrok.hpp to libsigrokcxx.hpp.
...
This avoids confusion of libsigrok.h vs. libsigrok.hpp and makes it
clearer that this is the main libsigrokcxx header.
2015-01-17 20:15:38 +01:00
Martin Ling
9fa5b426ec
bindings: Add UserDevice wrapping.
2014-11-13 18:37:57 +01:00
Martin Ling
b20635771c
bindings: Expose Analog::channels() as an attribute.
2014-11-12 02:27:05 +01:00
Martin Ling
ea22dc108b
python: Return correct PacketPayload subclasses from Packet.payload()
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
189461b251
bindings: Expose EnumValue::id and EnumValue::name as attributes.
2014-11-12 02:27:04 +01:00
Martin Ling
fe4096fde6
bindings: Wrap EnumValue base class.
2014-11-12 02:27:04 +01:00
Martin Ling
d3a401c15b
bindings: Remove Device::description().
2014-10-15 13:44:44 +02:00
Martin Ling
1411f7d8e9
bindings: Add Session::filename() and corresponding SWIG attribute.
2014-10-15 13:44:44 +02:00
Martin Ling
f591826cc7
bindings: add SWIG attribute for Packet::type.
2014-10-15 13:44:44 +02:00
Martin Ling
3b16108573
bindings: Remove 'get_' prefix from all accessors.
2014-09-11 21:27:32 +01:00
Martin Ling
cac58676e9
C++: Add SessionDevice class for devices owned by loaded sessions.
2014-09-08 19:27:38 +02:00
Martin Ling
ca3291e3ee
Update bindings for new input API.
2014-08-26 01:55:41 +02:00
Martin Ling
58aa1f8359
Update bindings to use new output API.
2014-07-26 16:03:25 +01:00
Martin Ling
06bd935e16
bindings: Add Channel::get_index() method.
2014-07-24 23:42:53 +01:00
Martin Ling
f36ca8893d
bindings: Add Device::get_description() method.
2014-07-24 23:42:53 +01:00
Martin Ling
6be7a7f287
bindings: Support get_channel_groups() on base Device class.
2014-07-24 23:42:53 +01:00
Martin Ling
2928f47d64
bindings: Overhaul packet & payload classes.
2014-07-24 23:42:53 +01:00
Martin Ling
6fa0eb86af
Add bindings for getting/setting session trigger.
2014-07-23 22:45:37 +01:00
Martin Ling
d615a3962a
Suppress some SWIG warnings that don't matter.
2014-07-19 16:28:42 +02:00
Martin Ling
608b848d8b
Add new generic SWIG bindings based on C++ classes.
2014-07-18 20:47:10 +01:00