]> sigrok.org Git - libsigrok.git/log
libsigrok.git
9 years agosaleae-logic16: Show libusb transfer status name instead of code.
Bert Vermeulen [Thu, 27 Nov 2014 23:21:10 +0000 (00:21 +0100)]
saleae-logic16: Show libusb transfer status name instead of code.

9 years agosaleae-logic16: Change two errors into warnings.
Uwe Hermann [Thu, 27 Nov 2014 22:22:05 +0000 (23:22 +0100)]
saleae-logic16: Change two errors into warnings.

Related to #466, convert two more sanity checks from errors into warnings.
This may allow more devices to work with libsigrok.

9 years agosaleae-logic16: Clearer error message.
Bert Vermeulen [Thu, 27 Nov 2014 00:00:40 +0000 (01:00 +0100)]
saleae-logic16: Clearer error message.

9 years agobeaglelogic: Add SR_CONF_CAPTURE_RATIO support.
Aurelien Jacobs [Tue, 25 Nov 2014 21:12:33 +0000 (22:12 +0100)]
beaglelogic: Add SR_CONF_CAPTURE_RATIO support.

9 years agosaleae-logic16: Add SR_CONF_CAPTURE_RATIO support.
Aurelien Jacobs [Tue, 25 Nov 2014 21:11:44 +0000 (22:11 +0100)]
saleae-logic16: Add SR_CONF_CAPTURE_RATIO support.

9 years agofx2lafw: Add SR_CONF_CAPTURE_RATIO support.
Aurelien Jacobs [Tue, 25 Nov 2014 11:28:36 +0000 (12:28 +0100)]
fx2lafw: Add SR_CONF_CAPTURE_RATIO support.

9 years agosoft-trigger: Add support for pre-triggering.
Aurelien Jacobs [Tue, 25 Nov 2014 11:23:34 +0000 (12:23 +0100)]
soft-trigger: Add support for pre-triggering.

9 years agoAlways save all channels to a session file.
Bert Vermeulen [Mon, 24 Nov 2014 01:21:15 +0000 (02:21 +0100)]
Always save all channels to a session file.

This works around limitations of the current API that screw up saving
only enabled channels. See bug 410. And bug 495.

9 years agobindings: Session::set_trigger(): Fix segfault condition.
Uwe Hermann [Mon, 24 Nov 2014 00:11:17 +0000 (01:11 +0100)]
bindings: Session::set_trigger(): Fix segfault condition.

sr_session_trigger_set(sess, NULL) is a valid thing to do, meaning that
any trigger shall be removed from the session.

This closes bugs #491 and #496.

9 years agosr_session_trigger_{get,set}: Document, add error checks.
Uwe Hermann [Sun, 23 Nov 2014 23:50:11 +0000 (00:50 +0100)]
sr_session_trigger_{get,set}: Document, add error checks.

9 years agoAdd a few unit tests for sr_session_trigger_{get,set}.
Uwe Hermann [Sun, 23 Nov 2014 23:49:38 +0000 (00:49 +0100)]
Add a few unit tests for sr_session_trigger_{get,set}.

9 years agomanson-hcs-3xxx: Fix incorrect SR_CONF_SCAN_OPTIONS handling.
Uwe Hermann [Sun, 23 Nov 2014 20:09:37 +0000 (21:09 +0100)]
manson-hcs-3xxx: Fix incorrect SR_CONF_SCAN_OPTIONS handling.

The SR_CONF_SCAN_OPTIONS key must be listable with or without sdi,
otherwise the device will not be detected by frontends.

9 years agoDo not check for JDK headers if Java bindings are disabled.
Jiří Pinkava [Sun, 23 Nov 2014 16:38:28 +0000 (17:38 +0100)]
Do not check for JDK headers if Java bindings are disabled.

This removes an unnecessary build dependency on JDK and fixes
build troubles on systems where javac is present but JDK is not
installed and Java bindings are disabled by ./configure --disable-java.

9 years agousb_get_port_path(): fix libusb error checking
Vincent Palatin [Mon, 10 Nov 2014 16:17:07 +0000 (08:17 -0800)]
usb_get_port_path(): fix libusb error checking

When libusb cannot access a device, libusb_get_port_numbers() will return
an error. Check the return code rather than doing invalid pointer
operations (out-of-bound read).

Avoid segfaults at sigrok-cli startup on my setup where some USB devices are
not accessible and also make Valgrind happier.

Signed-off-by: Vincent Palatin <redacted>
9 years agoPublish config key capabilities on session driver.
Bert Vermeulen [Sun, 23 Nov 2014 16:47:58 +0000 (17:47 +0100)]
Publish config key capabilities on session driver.

9 years agoAdd sr_rational_set() convenience function.
Bert Vermeulen [Thu, 20 Nov 2014 02:11:14 +0000 (03:11 +0100)]
Add sr_rational_set() convenience function.

9 years agosaleae-logic16: Downgrade error during capture to a message.
Tim Hatch [Sun, 2 Nov 2014 23:29:38 +0000 (15:29 -0800)]
saleae-logic16: Downgrade error during capture to a message.

Some clone doesn't set this to the exact same value, and both bits in 0x48 are
marked as unknown at
http://sigrok.org/wiki/Saleae_Logic16/Firmware#FPGA_variables

This fixes bug #466.

9 years agounit tests: Disable timeout for one of the test cases.
Uwe Hermann [Sun, 23 Nov 2014 12:10:32 +0000 (13:10 +0100)]
unit tests: Disable timeout for one of the test cases.

This one can take a while, thus disable the timeout.

9 years agopython: Silence some warnings via -Wno-uninitialized.
Uwe Hermann [Sat, 22 Nov 2014 21:06:02 +0000 (22:06 +0100)]
python: Silence some warnings via -Wno-uninitialized.

Silence some warnings when building the Python bindings:

  sigrok/core/classes_wrap.cpp: In function ‘PyObject* _wrap_new_OutputFormatMap(PyObject*, PyObject*)’:
  sigrok/core/classes_wrap.cpp:5232:4: warning: ‘argv[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
      ^
  sigrok/core/classes_wrap.cpp:14383:13: note: ‘argv[0]’ was declared here
     PyObject *argv[2];
               ^
  sigrok/core/classes_wrap.cpp: In function ‘PyObject* _wrap_new_ChannelGroupMap(PyObject*, PyObject*)’:
  sigrok/core/classes_wrap.cpp:5232:4: warning: ‘argv[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
      ^
  sigrok/core/classes_wrap.cpp:23356:13: note: ‘argv[0]’ was declared here
     PyObject *argv[2];
               ^

We add -Wno-uninitialized since the warnings are harmless and we really
don't care about them in the generated classes_wrap.cpp.

This fixes parts of #417.

9 years agoFix a bug causing one of the unit tests not being run.
Uwe Hermann [Sat, 22 Nov 2014 20:07:48 +0000 (21:07 +0100)]
Fix a bug causing one of the unit tests not being run.

9 years agotrigger: Add some more error handling.
Uwe Hermann [Sat, 22 Nov 2014 20:03:39 +0000 (21:03 +0100)]
trigger: Add some more error handling.

All of these error conditions are checked via the unit tests.

Also, add the following missing entries (analog trigger types):

 - SR_TRIGGER_RISING
 - SR_TRIGGER_EDGE

9 years agoAdd a few unit tests for sr_trigger_*().
Uwe Hermann [Sat, 22 Nov 2014 19:13:37 +0000 (20:13 +0100)]
Add a few unit tests for sr_trigger_*().

9 years agotrigger: Add API documentation.
Uwe Hermann [Sat, 22 Nov 2014 18:32:28 +0000 (19:32 +0100)]
trigger: Add API documentation.

9 years agoAdd missing entries to sr_config_info_data[].
Uwe Hermann [Sat, 22 Nov 2014 15:53:02 +0000 (16:53 +0100)]
Add missing entries to sr_config_info_data[].

Newly added keys:

 - SR_CONF_SAMPLE_INTERVAL
 - SR_CONF_NUM_TIMEBASE
 - SR_CONF_NUM_VDIV
 - SR_CONF_CENTER_FREQUENCY
 - SR_CONF_DEVICE_MODE
 - SR_CONF_SCAN_OPTIONS
 - SR_CONF_DEVICE_OPTIONS
 - SR_CONF_DEVICE_MODE
 - SR_CONF_TEST_MODE

Also, keep the same ordering and grouping as in libsigrok.h.

9 years agoUse g_malloc0() consistently, simplify error handling.
Uwe Hermann [Fri, 21 Nov 2014 18:02:10 +0000 (19:02 +0100)]
Use g_malloc0() consistently, simplify error handling.

Use g_malloc0() for small allocations and assume they always
succeed. Simplify error handling in a few places accordingly.

Don't always sanity-check parameters for non-public (SR_PRIV)
functions, we require the developers to invoke them correctly.
This allows further error handling simplifications.

9 years agoDon't check sr_channel_new() return value (always succeeds).
Uwe Hermann [Fri, 21 Nov 2014 08:07:04 +0000 (09:07 +0100)]
Don't check sr_channel_new() return value (always succeeds).

We now use g_malloc0() for the allocation and assume the allocation
will always succeed, thus sr_channel_new() will always return a
valid new channel.

9 years agoConsistently use g_malloc0() for allocating devc.
Uwe Hermann [Fri, 21 Nov 2014 01:26:24 +0000 (02:26 +0100)]
Consistently use g_malloc0() for allocating devc.

We assume the allocation will always succeed, hence no need for
checking the returned value.

9 years agoEliminate sr_dev_inst_new().
Uwe Hermann [Fri, 21 Nov 2014 01:01:36 +0000 (02:01 +0100)]
Eliminate sr_dev_inst_new().

9 years agoFix invalid pointer dereference.
Bert Vermeulen [Thu, 20 Nov 2014 02:08:55 +0000 (03:08 +0100)]
Fix invalid pointer dereference.

9 years agoyokogawa-dlm: Publish driver options.
Aurelien Jacobs [Wed, 19 Nov 2014 22:54:01 +0000 (23:54 +0100)]
yokogawa-dlm: Publish driver options.

9 years agomotech-lps-30x: Publish driver options.
Aurelien Jacobs [Wed, 19 Nov 2014 22:53:35 +0000 (23:53 +0100)]
motech-lps-30x: Publish driver options.

9 years agomanson-hcs-3xxx: Publish driver options.
Aurelien Jacobs [Wed, 19 Nov 2014 22:53:10 +0000 (23:53 +0100)]
manson-hcs-3xxx: Publish driver options.

9 years agohameg-hmo: Publish driver options.
Aurelien Jacobs [Wed, 19 Nov 2014 22:52:51 +0000 (23:52 +0100)]
hameg-hmo: Publish driver options.

9 years agoFinish fixing broken sr_config_list() logic.
Aurelien Jacobs [Wed, 19 Nov 2014 13:12:48 +0000 (14:12 +0100)]
Finish fixing broken sr_config_list() logic.

9 years agoMake sr_analog_*_to_string() functions allocate the necessary buffers.
Martin Ling [Wed, 19 Nov 2014 01:23:48 +0000 (01:23 +0000)]
Make sr_analog_*_to_string() functions allocate the necessary buffers.

9 years agomic-985xx: Correctly report SR_CONF_THERMOMETER/_HYGROMETER.
Uwe Hermann [Tue, 18 Nov 2014 22:43:38 +0000 (23:43 +0100)]
mic-985xx: Correctly report SR_CONF_THERMOMETER/_HYGROMETER.

Some models only log temperature, others log temperature and humidity
(so they need different drvopts).

9 years agomic-985xx: Drop unneeded #define.
Uwe Hermann [Tue, 18 Nov 2014 22:19:48 +0000 (23:19 +0100)]
mic-985xx: Drop unneeded #define.

9 years agomic-985xx: Publish driver options.
Uwe Hermann [Tue, 18 Nov 2014 22:19:21 +0000 (23:19 +0100)]
mic-985xx: Publish driver options.

9 years agocenter-3xx: Drop unneeded #define.
Uwe Hermann [Tue, 18 Nov 2014 18:42:31 +0000 (19:42 +0100)]
center-3xx: Drop unneeded #define.

9 years agocenter-3xx: Publish driver options.
Uwe Hermann [Tue, 18 Nov 2014 18:16:39 +0000 (19:16 +0100)]
center-3xx: Publish driver options.

9 years agoRevert "victor-dmm: Set spec digits to 3, matching the display."
Bert Vermeulen [Tue, 18 Nov 2014 17:10:19 +0000 (18:10 +0100)]
Revert "victor-dmm: Set spec digits to 3, matching the display."

This reverts commit 28b424349363a9002e7af7300a7f2941a8469004.

9 years agools: Publish driver options.
Bert Vermeulen [Tue, 18 Nov 2014 16:41:36 +0000 (17:41 +0100)]
ols: Publish driver options.

9 years agoagilent-dmm: Now really fix driver options.
Bert Vermeulen [Tue, 18 Nov 2014 16:31:58 +0000 (17:31 +0100)]
agilent-dmm: Now really fix driver options.

9 years agoappa-55ii: Publish driver options.
Bert Vermeulen [Tue, 18 Nov 2014 15:50:47 +0000 (16:50 +0100)]
appa-55ii: Publish driver options.

9 years agohantek-dso: Fix driver options.
Bert Vermeulen [Tue, 18 Nov 2014 15:46:39 +0000 (16:46 +0100)]
hantek-dso: Fix driver options.

9 years agoatten-pps3xxx: Fix driver options.
Bert Vermeulen [Tue, 18 Nov 2014 15:32:51 +0000 (16:32 +0100)]
atten-pps3xxx: Fix driver options.

9 years agocem-dt-885x: Fix driver options.
Bert Vermeulen [Tue, 18 Nov 2014 15:42:52 +0000 (16:42 +0100)]
cem-dt-885x: Fix driver options.

9 years agoscpi-pps: Fix driver options.
Bert Vermeulen [Tue, 18 Nov 2014 15:38:37 +0000 (16:38 +0100)]
scpi-pps: Fix driver options.

9 years agoasix-sigma: Fix driver options.
Bert Vermeulen [Tue, 18 Nov 2014 15:30:47 +0000 (16:30 +0100)]
asix-sigma: Fix driver options.

9 years agooutput/analog: Add option to restrict number of decimal digits printed.
Bert Vermeulen [Tue, 18 Nov 2014 14:51:38 +0000 (15:51 +0100)]
output/analog: Add option to restrict number of decimal digits printed.

This is a feature restricted to the new analog struct.

By default all the digits available in the encoding struct are printed.
The option "digits", when set to "spec", changes this to print the
number given in the spec struct.

9 years agoAdd debug spew to all sr_config_(get|set|list) calls.
Bert Vermeulen [Tue, 18 Nov 2014 14:46:59 +0000 (15:46 +0100)]
Add debug spew to all sr_config_(get|set|list) calls.

9 years agoFix broken sr_config_list() logic.
Bert Vermeulen [Tue, 18 Nov 2014 14:46:24 +0000 (15:46 +0100)]
Fix broken sr_config_list() logic.

9 years agodemo: Fix driver options.
Bert Vermeulen [Tue, 18 Nov 2014 14:39:46 +0000 (15:39 +0100)]
demo: Fix driver options.

9 years agofx2lafw: Publish driver options.
Bert Vermeulen [Tue, 18 Nov 2014 14:35:30 +0000 (15:35 +0100)]
fx2lafw: Publish driver options.

9 years agoagilent-dmm: Publish driver options.
Bert Vermeulen [Tue, 18 Nov 2014 14:34:52 +0000 (15:34 +0100)]
agilent-dmm: Publish driver options.

9 years agovictor-dmm: Publish driver options.
Bert Vermeulen [Tue, 18 Nov 2014 10:19:18 +0000 (11:19 +0100)]
victor-dmm: Publish driver options.

9 years agoAdd analog helper sr_analog_unit_to_string().
Bert Vermeulen [Tue, 18 Nov 2014 00:16:27 +0000 (01:16 +0100)]
Add analog helper sr_analog_unit_to_string().

9 years agoAdd analog helper sr_analog_float_to_string().
Bert Vermeulen [Tue, 18 Nov 2014 00:15:41 +0000 (01:15 +0100)]
Add analog helper sr_analog_float_to_string().

9 years agoShow SR_DF_ANALOG2 packets in debug output.
Bert Vermeulen [Mon, 17 Nov 2014 23:24:37 +0000 (00:24 +0100)]
Show SR_DF_ANALOG2 packets in debug output.

9 years agovictor-dmm: Set spec digits to 3, matching the display.
Bert Vermeulen [Mon, 17 Nov 2014 23:24:08 +0000 (00:24 +0100)]
victor-dmm: Set spec digits to 3, matching the display.

9 years agoanalog: Fix analog_to_float typos, and cleanup.
Bert Vermeulen [Mon, 17 Nov 2014 22:08:49 +0000 (23:08 +0100)]
analog: Fix analog_to_float typos, and cleanup.

This was adding 1 to every measurement being converted.

9 years agoAdd a sr_analog_init() API to initialize sr_datafeed_analog2 struct.
Aurelien Jacobs [Thu, 13 Nov 2014 23:50:46 +0000 (00:50 +0100)]
Add a sr_analog_init() API to initialize sr_datafeed_analog2 struct.

It fills the fields with reasonable default values that should suit
most of the drivers. Drivers are obviously free to override the fields
they want after initializing.

9 years agodemo: Fix analog output at low samplerate.
Aurelien Jacobs [Mon, 17 Nov 2014 10:38:37 +0000 (11:38 +0100)]
demo: Fix analog output at low samplerate.

9 years agodemo: Fix square pattern output shorter than other patterns.
Aurelien Jacobs [Mon, 17 Nov 2014 10:40:22 +0000 (11:40 +0100)]
demo: Fix square pattern output shorter than other patterns.

9 years agoCheck driver capabilities before sr_config_get/set/list.
Bert Vermeulen [Mon, 17 Nov 2014 12:20:05 +0000 (13:20 +0100)]
Check driver capabilities before sr_config_get/set/list.

9 years agoautogen.sh: Also warn if AX_CXX_COMPILE_STDCXX_11 is not available.
Uwe Hermann [Fri, 14 Nov 2014 23:41:10 +0000 (00:41 +0100)]
autogen.sh: Also warn if AX_CXX_COMPILE_STDCXX_11 is not available.

This fixes an error message when the file is not installed at all:

  ./autogen.sh: 67: [: Illegal number:

Turn the AX_CXX_COMPILE_STDCXX_11 errors into warnings though, since
it is (and should be) possible to build libsigrok (just the C library)
just fine, even without that macro or with an older version of it.

9 years agoCheck the version of the AX_CXX_COMPILE_STDCXX_11 macro.
Jens Steinhauser [Fri, 14 Nov 2014 00:43:25 +0000 (01:43 +0100)]
Check the version of the AX_CXX_COMPILE_STDCXX_11 macro.

9 years agoRefactor scan options check.
Bert Vermeulen [Fri, 14 Nov 2014 19:24:43 +0000 (20:24 +0100)]
Refactor scan options check.

9 years agobindings: Fix out-of-tree build.
Uwe Hermann [Fri, 14 Nov 2014 19:01:12 +0000 (20:01 +0100)]
bindings: Fix out-of-tree build.

This closes #473.

9 years agobindings: Re-enable Java, but ignore create_analog_packet().
Uwe Hermann [Fri, 14 Nov 2014 15:47:46 +0000 (16:47 +0100)]
bindings: Re-enable Java, but ignore create_analog_packet().

This will need some fixing.

9 years agosr_driver_scan: Enforce options passed in by client.
Bert Vermeulen [Fri, 14 Nov 2014 11:22:54 +0000 (12:22 +0100)]
sr_driver_scan: Enforce options passed in by client.

9 years agodemo: Use allocation for model string.
Bert Vermeulen [Fri, 14 Nov 2014 10:37:11 +0000 (11:37 +0100)]
demo: Use allocation for model string.

9 years agomic-985xx: Convert to use SR_DF_ANALOG2.
Uwe Hermann [Wed, 12 Nov 2014 22:34:20 +0000 (23:34 +0100)]
mic-985xx: Convert to use SR_DF_ANALOG2.

9 years agovictor-dmm: Convert to use SR_DF_ANALOG2.
Uwe Hermann [Wed, 12 Nov 2014 15:31:30 +0000 (16:31 +0100)]
victor-dmm: Convert to use SR_DF_ANALOG2.

9 years agooutput/analog: Add SR_DF_ANALOG2 support.
Bert Vermeulen [Wed, 12 Nov 2014 16:05:13 +0000 (17:05 +0100)]
output/analog: Add SR_DF_ANALOG2 support.

9 years agoAdd sr_analog_to_float().
Bert Vermeulen [Wed, 12 Nov 2014 16:05:13 +0000 (17:05 +0100)]
Add sr_analog_to_float().

9 years agoAdd SR_DF_ANALOG2 and related structs.
Bert Vermeulen [Wed, 12 Nov 2014 13:46:51 +0000 (14:46 +0100)]
Add SR_DF_ANALOG2 and related structs.

New structs:
 - sr_rational
 - sr_datafeed_analog2
 - sr_analog_encoding
 - sr_analog_meaning
 - sr_analog_spec

9 years agobindings: Fix enums.py compatibility with Python 3.
Martin Ling [Thu, 13 Nov 2014 20:38:56 +0000 (20:38 +0000)]
bindings: Fix enums.py compatibility with Python 3.

9 years agobindings: Add Session::context().
Uwe Hermann [Thu, 13 Nov 2014 18:15:37 +0000 (19:15 +0100)]
bindings: Add Session::context().

9 years agoconfigure.ac: Temporarily disable Java bindings.
Uwe Hermann [Thu, 13 Nov 2014 17:40:44 +0000 (18:40 +0100)]
configure.ac: Temporarily disable Java bindings.

Those need a bugfix to make them build again:

  bindings/java/org/sigrok/core/classes/Context.java:92: error: method Context_create_analog_packet in class classesJNI cannot be applied to given types;
        long cPtr = classesJNI.Context_create_analog_packet(swigCPtr, this, ChannelVector.getCPtr(tempchannels), SWIGTYPE_p_float.getCPtr(data_pointer), num_samples, Quantity.getCPtr(mq), mq, Unit.getCPtr(unit), unit, QuantityFlagVector.getCPtr(mqflags), mqflags);
                              ^
    required: long,Context,Vector<Channel>,long,long,long,Quantity,long,Unit,long,QuantityFlagVector
    found: long,Context,long,long,long,long,Quantity,long,Unit,long,QuantityFlagVector
    reason: actual argument long cannot be converted to Vector<Channel> by method invocation conversion
  1 error
  Makefile:3352: recipe for target 'bindings/java/sigrok-core.jar' failed

9 years agobindings: Add packet constructors.
Martin Ling [Wed, 12 Nov 2014 12:37:22 +0000 (12:37 +0000)]
bindings: Add packet constructors.

9 years agobindings: Add QuantityFlag::mask_from_flags() method.
Martin Ling [Wed, 12 Nov 2014 11:08:22 +0000 (11:08 +0000)]
bindings: Add QuantityFlag::mask_from_flags() method.

9 years agobindings: Add UserDevice wrapping.
Martin Ling [Wed, 12 Nov 2014 02:23:02 +0000 (02:23 +0000)]
bindings: Add UserDevice wrapping.

9 years agoChange sr_dev_inst_new() to take no parameters.
Uwe Hermann [Wed, 12 Nov 2014 01:06:15 +0000 (02:06 +0100)]
Change sr_dev_inst_new() to take no parameters.

Change all callers to set the fields manually as needed.

9 years agoHACKING: Document the new malloc related guidelines.
Uwe Hermann [Tue, 11 Nov 2014 23:04:28 +0000 (00:04 +0100)]
HACKING: Document the new malloc related guidelines.

9 years agoHACKING: Minor updates.
Uwe Hermann [Tue, 11 Nov 2014 22:52:53 +0000 (23:52 +0100)]
HACKING: Minor updates.

9 years agopython: Wrap Analog::data() as a NumPy array.
Martin Ling [Wed, 12 Nov 2014 01:00:17 +0000 (01:00 +0000)]
python: Wrap Analog::data() as a NumPy array.

9 years agobindings: Expose Analog::channels() as an attribute.
Martin Ling [Tue, 11 Nov 2014 23:54:39 +0000 (23:54 +0000)]
bindings: Expose Analog::channels() as an attribute.

9 years agopython: Return correct PacketPayload subclasses from Packet.payload()
Martin Ling [Tue, 11 Nov 2014 23:44:26 +0000 (23:44 +0000)]
python: Return correct PacketPayload subclasses from Packet.payload()

9 years agopython: Fix error handling for callbacks.
Martin Ling [Tue, 11 Nov 2014 21:04:44 +0000 (21:04 +0000)]
python: Fix error handling for callbacks.

9 years agopython: Implement equality checks for EnumValue derived classes.
Martin Ling [Tue, 11 Nov 2014 20:11:32 +0000 (20:11 +0000)]
python: Implement equality checks for EnumValue derived classes.

Fixes bug #443.

9 years agobindings: Support per-language extensions to EnumValue wrappers.
Martin Ling [Tue, 11 Nov 2014 18:26:50 +0000 (18:26 +0000)]
bindings: Support per-language extensions to EnumValue wrappers.

9 years agopython: Fix mapping of vector & map attributes to Python types.
Martin Ling [Tue, 11 Nov 2014 15:29:35 +0000 (15:29 +0000)]
python: Fix mapping of vector & map attributes to Python types.

Fixes bug #382.

9 years agobindings: Use new %attributevector and %attributemap macros.
Martin Ling [Tue, 11 Nov 2014 14:50:55 +0000 (14:50 +0000)]
bindings: Use new %attributevector and %attributemap macros.

9 years agobindings: Expose ConfigKey::identifier as an attribute.
Martin Ling [Tue, 11 Nov 2014 01:24:19 +0000 (01:24 +0000)]
bindings: Expose ConfigKey::identifier as an attribute.

9 years agobindings: Expose EnumValue::id and EnumValue::name as attributes.
Martin Ling [Tue, 11 Nov 2014 01:18:58 +0000 (01:18 +0000)]
bindings: Expose EnumValue::id and EnumValue::name as attributes.

9 years agobindings: Wrap EnumValue base class.
Martin Ling [Wed, 29 Oct 2014 14:36:45 +0000 (14:36 +0000)]
bindings: Wrap EnumValue base class.

9 years agobindings: Rename ConfigKey::get(string) to get_by_identifier().
Martin Ling [Wed, 29 Oct 2014 14:33:46 +0000 (14:33 +0000)]
bindings: Rename ConfigKey::get(string) to get_by_identifier().

The polymorphism with get(int) causes problems here when a char * is passed.

9 years agocxx: Implement more of EnumValue in template.
Martin Ling [Wed, 29 Oct 2014 14:31:31 +0000 (14:31 +0000)]
cxx: Implement more of EnumValue in template.

9 years agooutput: Add srzip, the session file format.
Bert Vermeulen [Tue, 11 Nov 2014 22:23:09 +0000 (23:23 +0100)]
output: Add srzip, the session file format.

The 'filename' option is required: this module creates the zip file
itself, and never actually outputs anything back to the calling frontend.