Uwe Hermann
b1f8310376
Don't check g_free() arguments for NULL.
...
The g_free() call is guaranteed to not segfault when NULL is passed.
2015-04-01 00:23:25 +02:00
Uwe Hermann
329733d92c
Constify a few arrays and variables.
2015-03-21 20:30:53 +01:00
Martin Ling
4f840ce965
Pass driver struct pointer to driver callbacks.
...
This lays the groundwork for subdrivers to share callbacks without
needing a separate wrapper function for each subdriver.
2015-03-21 13:09:40 +01:00
Martin Ling
bf622e6d00
Rename SR_CONF_NUM_TIMEBASE to SR_CONF_NUM_HDIV.
2015-03-02 12:24:12 +01:00
Uwe Hermann
f57d8ffe66
Consistently use g_malloc0() for allocating devc.
...
We assume the allocation will always succeed, hence no need for
checking the returned value.
2014-11-21 12:09:01 +01:00
Uwe Hermann
aac29cc192
Eliminate sr_dev_inst_new().
2014-11-21 02:01:36 +01:00
Aurelien Jacobs
6ec3ef9b92
hameg-hmo: Publish driver options.
2014-11-19 23:52:51 +01:00
Uwe Hermann
0af636bed9
Change sr_dev_inst_new() to take no parameters.
...
Change all callers to set the fields manually as needed.
2014-11-12 17:18:46 +01:00
Soeren Apel
b33db61c48
hameg-hmo: Populate sdi->serial_num
2014-10-17 03:02:52 +02:00
Soeren Apel
aed4ad0bea
Removal of sdi->index, step 4: fix trivial sr_dev_inst_new() calls
2014-09-30 01:42:58 +02:00
Bert Vermeulen
f254bc4bba
Consistently use 'devopts' variable across all drivers.
2014-09-16 22:11:39 +02:00
Bert Vermeulen
584560f142
Change type of SR_CONF keys to uint32_t.
2014-09-16 21:22:41 +02:00
Soeren Apel
562b7ae513
hameg-hmo / rigol-ds: Restore compatibility with std_dev_clear()
2014-08-24 16:54:38 +02:00
Soeren Apel
db81fbb582
hameg-hmo: Make sure the enabled_channels list is empty before populating it
...
Previous runs of dev_acquisition_start() keep the enabled_channels list
populated if they fail. This means that once an invalid channel
configuration was detected, it will be detected again even if the channel
configuration was changed. With this change, the list will be cleared
before being populated so that any stale entries are removed.
2014-08-14 22:43:57 +02:00
Bert Vermeulen
226363c4e8
hameg-hmo: Implement SR_CONF_SCAN_OPTIONS.
2014-08-03 14:00:07 +02:00
Bert Vermeulen
155b680da4
Reorganize project tree.
2014-07-22 18:19:29 +02:00