Commit Graph

1513 Commits

Author SHA1 Message Date
Renato Caldas 1190dcf713 Added "autostuff" to the .gitignore. 2012-01-06 15:05:30 +01:00
Renato Caldas 446a037205 session: Fixed error reporting. 2012-01-06 15:05:28 +01:00
Uwe Hermann 42eb54fb62 mso-19: Fix whitespace. 2012-01-06 01:05:55 +01:00
Renato Caldas d88b939324 link-mso19: fixed segmentation fault. 2012-01-06 01:01:57 +01:00
Renato Caldas e42ef08dba link-mso19: Updated to the current structs (fixed compilation). 2012-01-06 01:01:54 +01:00
Uwe Hermann 0c8dc7b416 udev: Add missing USB IDs for some devices. 2012-01-04 16:45:53 +01:00
Uwe Hermann 8e43129c10 A few more fixes for configure.ac files.
Add missing checks and quotes, remove superfluous checks, etc.
2012-01-04 15:42:24 +01:00
Uwe Hermann dd8b5f565f sr/srd: Add Doxyfile to the tarball. 2012-01-04 02:50:26 +01:00
Uwe Hermann 4abf8dd0a5 srd: Show config summary, libs, and Python info. 2012-01-04 02:41:33 +01:00
Uwe Hermann 45aed0721c sr: configure.ac: Print more summary info.
- Package version (major.minor.micro)

 - Library version (current:revision:age)

 - Installation prefix (usually /usr/local)

 - Detected libraries and their versions (only for pkg-config libs)
2012-01-04 02:22:17 +01:00
Uwe Hermann 3af71f0da6 sr: configure.ac: Fix version number magic. 2012-01-04 00:36:53 +01:00
Uwe Hermann d8521c939f Put most autotools files into autostuff/.
This yields a slightly more "tidy" top-level directory.
2012-01-03 23:34:31 +01:00
Uwe Hermann 8e190238d7 sr: Put files into .../share/libsigrok. 2012-01-03 20:06:36 +01:00
Uwe Hermann 0da5b6a9f5 sr: Remove useless filename prefixes. 2012-01-03 20:01:02 +01:00
Uwe Hermann cd315a80d8 sr/srd: Fix left-over #includes.
The libs themselves should use #include "sigrok.h" etc., while the
frontends must use #include <sigrok.h> and so on.
2012-01-03 19:56:01 +01:00
Uwe Hermann 3b7c8f54fc sr: Drop some obsolete and commented out code. 2012-01-02 14:25:52 +01:00
Uwe Hermann 9f45fb3aea sr: session: Add docs and some error checks. 2012-01-02 14:23:33 +01:00
Uwe Hermann 13177edbdf Split README, add appropriate ones per-project. 2011-12-30 22:38:25 +01:00
Uwe Hermann f928befdad Update/fix .gitignore files. 2011-12-30 22:14:38 +01:00
Uwe Hermann db8ae7b941 sr/srd: Remove/fix non-applicable autotools stuff. 2011-12-30 11:14:24 +01:00
Uwe Hermann 826938d81e sr/srd: Move some files to their resp. dirs. 2011-12-30 11:14:05 +01:00
Uwe Hermann 5e59cfbfc7 Move most contrib/ stuff to libsigrok.
The udev rules file is libsigrok-specific, the gnuplot files too.

The nsis files stay in the top-level contrib/ for now, they're not
really part of any of the (sub-)projects, but rather are used to create
a single Windows .exe installer for all of them.
2011-12-30 10:34:30 +01:00
Uwe Hermann c37d2b1ba1 probe names: Fix cosmetics, add docs, fix off-by-one. 2011-12-29 19:50:14 +01:00
Kristoffer Sjöberg 464d12c72a Move the probe naming to the creator of the device, and let each driver name its own probes. 2011-12-29 17:04:31 +01:00
Uwe Hermann 2d83e0f963 Fix outdated ezusb_install_firmware() prototype. 2011-12-28 23:11:52 +01:00
Uwe Hermann b7f09cf86d libsigrok: Fix #includes.
In the lib, we should only #include "sigrok.h" or "sigrok-internal.h",
but not the (possibly installed and thus different/older versions) via
<sigrok.h> or <sigrok-internal.h>.

Frontends should of course use <sigrok.h> and <sigrok-internal.h>.
2011-12-28 23:07:08 +01:00
Uwe Hermann a0ecd83bc6 Make more variables/functions static and non-global.
The 'GSList *devices' from device.c was actually really global (i.e.,
listed in sigrok.h), which is now fixed.
2011-12-28 22:55:21 +01:00
Uwe Hermann c5d660ae24 Drop unused 'global' struct/variable.
The libs shouldn't have any (externally visible) globals anyway.
2011-12-28 21:38:56 +01:00
Uwe Hermann 155d1012f1 sigrok-proto.h: Drop obsolete prototype, move other one. 2011-12-28 21:37:37 +01:00
Uwe Hermann 08d4cc1d14 device: Make some parameters const. 2011-12-28 21:34:37 +01:00
Uwe Hermann 0e3b143994 device: Change some functions to return int.
The callers of these functions are yet to be changed so that they
actually check the return values and handle errors appropriately.
2011-12-28 17:26:19 +01:00
Uwe Hermann 94799bc4dc device: Add Doxygen comments, improve error handling.
- Add Doxygen comments for all functions (some TODOs remain).

 - Check return code of more functions, handle invalid input.
2011-12-28 16:55:24 +01:00
Bert Vermeulen cb1e389c72 make time/duration work, at least when loading from a session file
PD decode() call now takes 3 arguments: timeoffset, duration, data
as per the current API specification.
2011-12-28 12:17:13 +01:00
Uwe Hermann 15278f3e9c datastore.c: Improve error handling and docs.
- Add Doxygen comments for all functions (some TODOs remain).

 - Check for invalid input parameters (such as NULL pointers etc).

 - Return SR_ERR_ARG upon invalid input parameters.

 - Make sr_datastore_put() return int instead of void, so we can pass
   an error code (SR_OK, SR_ERR_MALLOC, and so on) to the caller.
2011-12-26 21:26:02 +01:00
Uwe Hermann 7a6ec0c376 sr_filter_probes(): Check for too many probes.
Return SR_ERR_ARG if the number of enabled probes is higher than the
requested unit size supports.
2011-12-26 21:26:01 +01:00
Uwe Hermann 488a13b110 Improve sr_filter_probes error handling and docs.
- Much more elaborate doxygen comments for the function and its
   parameters, allowed input values, and so on.

 - Make 'probelist' const, the function doesn't modify it.

 - Check for invalid inputs such as NULL pointers.

 - Use g_try_malloc() and g_free() for the output buffer. Document who
   is expected to g_free() the buffer.
2011-12-22 14:16:07 +01:00
Uwe Hermann 25a605d187 libsigrok: Quickfix for a segfault in ChronoVu LA8. 2011-12-04 18:33:29 +01:00
Gareth McMullin 276585ff20 srd: Pass samplerate to decoder in metadata. 2011-11-28 21:52:35 +13:00
Bert Vermeulen f64c14141b fix CLI size string specification
accept "hz" as optional qualifier but nothing else
properly return an error instead of quietly returning zero size
2011-11-27 19:33:07 +01:00
Uwe Hermann cb93f8a927 Other method to avoid "unused var" compiler warnings.
The '(void)varname' method is nicer than 'varname = varname' and also
prevents warnings when compiling sigrok with clang instead of gcc.
2011-11-24 22:57:48 +01:00
Uwe Hermann cc8a7d250c Add missing #includes to avoid clang warnings. 2011-11-24 22:42:02 +01:00
Bert Vermeulen e7bad06355 la8: device not found during init() scan is not an error
fix some hardware plugin semantics
2011-11-20 03:19:06 +01:00
Uwe Hermann e48846b1d2 libsigrok: glib-2.0 is a hard requirement. 2011-11-19 16:23:21 +01:00
Gareth McMullin 4d436e71ba Changed SR_T_NULL to SR_T_BOOL and adjusted RLE option. 2011-11-19 13:41:41 +13:00
Uwe Hermann 6bb5c5fadf Consistently use __func__ instead of __FUNCTION__.
The __func__ form is standardized and more portable.
2011-11-17 23:47:45 +01:00
Uwe Hermann a562c3a2e5 libsigrok: Use sr_err() et al instead of printf. 2011-11-17 23:47:45 +01:00
Gareth McMullin 805e9640ff Fixed a crash when loading a second session file. 2011-11-17 21:18:46 +13:00
Uwe Hermann 48ca6b54b0 sigrok.h: Remove SIGROK_*VERSION #defines again.
These version numbers represent the sigrok version (i.e., the version
of the tarball, such as "sigrok-0.2.0.tar.gz"), but _not_ the libsigrok
(libtool) library/API/ABI versions. Thus, they should not be in
libsigrok's include file (sigrok.h).
2011-11-15 22:54:07 +01:00
Uwe Hermann 719c5a934c Fix some compiler warnings. 2011-11-15 21:05:40 +01:00
Uwe Hermann 300007323e libsigrok.pc: Add Required.private field entries.
The "Required.private:" field in pkg-config .pc files is used for
declaring that we need the listed libs (pkg-config packages) for
static linking, but not for dynamic linking.
I.e., the "Required.private:" field should be used for libs which we
use internally in libsigrok, but which we do not "expose" ourselves.

For now all libs are listed as "Required.private:" instead of
"Required:", but this may not be entirely correct and needs to be
checked carefully at some later date.
2011-11-15 01:16:38 +01:00