]> sigrok.org Git - libsigrok.git/commit
bindings: add u32/SR_T_UINT32 support for config keys
authorMarkus Heidelberg <redacted>
Sun, 11 Dec 2022 00:28:55 +0000 (01:28 +0100)
committerGerhard Sittig <redacted>
Mon, 19 Dec 2022 08:11:36 +0000 (09:11 +0100)
commit0db1b189bee3ffe5c6ea39d7ca2e62715856b538
tree96308bfc459cd0be0237557b1d424b7a73b2e6a7
parentf806de1864167feed30952f1ab65497b8ee4152a
bindings: add u32/SR_T_UINT32 support for config keys

Previous bindings for C++ and other languages lacked support for the
uint32_t data type for config keys. Which terminated the program with
the message:

  Exception: internal error

The following PulseView commands reproduced the issue:

  $ pulseview -i /dev/null -I csv:single_column=1
  $ pulseview -i /dev/null -I csv:first_column=1
  $ pulseview -i /dev/null -I csv:logic_channels=1
  $ pulseview -i /dev/null -I csv:start_line=1

  $ pulseview -i /dev/null -I saleae:wordsize=1
  $ pulseview -i /dev/null -I saleae:logic_channels=1

  $ pulseview -i /dev/null -I vcd:numchannels=1

Add support for uint32_t data types in the C++, Python, and Ruby
language bindings.

[ gsi: separate stou32() helper ]
bindings/cxx/ConfigKey_methods.cpp
bindings/cxx/classes.cpp
bindings/python/sigrok/core/classes.i
bindings/ruby/classes.i
include/libsigrok/libsigrok.h
src/hwdriver.c