From: Bert Vermeulen Date: Tue, 17 Jan 2012 02:37:34 +0000 (+0100) Subject: SRD: support setting per-PD options X-Git-Tag: libsigrokdecode-0.1.0~127 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=0bdadba205a6d7688a2bb8d98ab342abe22acd6e;hp=0bdadba205a6d7688a2bb8d98ab342abe22acd6e SRD: support setting per-PD options All decoder class options are automatically copied to a newly created instance with their default value, which can be overridden with the GHashTable passed to srd_instance_new(). Currently, only strings and integers are supported as option value types. The type is set by the default value in the decoder class, and enforced when overriding them. Integers can be specified in any format python allows: 10, 0x0a and so on. ---