Martin Ling
5e23fcab88
Simplify channel creation.
...
We always follow sr_channel_new() with a call to add the channel to the sdi.
Tidy up a bit by adding this functionality to sr_channel_new() instead.
2015-03-19 21:37:33 +00:00
Aurelien Jacobs
a160a0c344
session_file: Enable only the probes that are actually listed in metadata.
...
This is a better fix for #410 and #495 .
2014-12-05 01:14:22 +01:00
Uwe Hermann
c368e6f3d2
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.
2014-11-21 12:10:05 +01:00
Uwe Hermann
aac29cc192
Eliminate sr_dev_inst_new().
2014-11-21 02:01:36 +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
Martin Ling
1de3ccede9
Track sdis created by sr_session_load(), and free in sr_session_destroy().
2014-10-15 13:44:25 +02:00
Bert Vermeulen
d386a52f64
Clean up sr_session_load().
...
This cleans up some warnings generated by clang's static analyzer.
The function now also returns SR_ERR to signify the specified filename
does not point to a valid session file.
Other SR_ERR_* returns indicate a session file was found, but loading
failed.
2014-10-02 11:32:52 +02:00
Soeren Apel
c6805a02cc
Removal of sdi->index, step 2: remove it from sr_session_load()
2014-09-30 01:42:58 +02:00
Martin Ling
aba57f3550
Close zip file at end of sr_session_file_check.
...
From patch sent to sigrok-devel by jerryxjtu.
2014-08-20 14:48:29 +02:00
Uwe Hermann
508ddda2a3
session_file.c: Drop left-over extern.
2014-08-11 12:31:01 +02:00
Uwe Hermann
7efe889e7a
Doxygen: Add a few missing @param lines for sessions.
...
This fixes a bunch of Doxygen warnings.
2014-08-10 17:31:33 +02:00
Uwe Hermann
f4d2042d3c
session*.c: Remove some unneeded lines.
2014-07-22 23:25:24 +02:00
Bert Vermeulen
155b680da4
Reorganize project tree.
2014-07-22 18:19:29 +02:00