Uwe Hermann
7237e91262
portability: Use g_strerror() in favor of strerror().
2015-09-09 15:20:10 +02:00
Daniel Elstner
b9eb8e1a8c
Consistently use SR_PACKAGE_VERSION instead of VERSION
2015-08-16 18:28:13 +02:00
Daniel Elstner
c1aae90038
Build: Set local include directories in Makefile.am
...
Move the include flags for files in the source tree from
configure.ac to Makefile.am where they belong. Also use
AM_CPPFLAGS instead of CFLAGS/CXXFLAGS to make sure the
files in the build/source tree are always picked up first.
Also, remove the include/libsigrok sub-directory from the
search path, thereby making the <libsigrok/> prefix mandatory
when building libsigrok itself. This matches the convention
already imposed on users of the library.
2015-08-16 18:28:12 +02:00
Martin Ling
61e6e2da45
Make sr_session_new() and sr_session_load() require a context.
2015-03-26 01:02:40 +01:00
Uwe Hermann
c72981ac41
Revert "session_file.c: Use config_*() wrappers."
...
This temporarily reverts commit 421bc3eba0
.
We cannot yet use the sr_config_*() wrappers, otherwise loading *.sr
files is broken. A fix is being worked on.
2015-03-24 23:35:29 +01:00
Uwe Hermann
421bc3eba0
session_file.c: Use config_*() wrappers.
2015-03-22 02:15:30 +01:00
Uwe Hermann
1beccaed46
Various minor whitespace fixes.
2015-03-21 19:28:54 +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
6f1346fbd7
Change API of channel accessor functions to take struct sr_channel *.
2015-03-19 21:57:31 +00:00
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