SQ50 patches for libsigrok
Go to file
Uwe Hermann 133a37bfba Use g_try_malloc/g_free/g_strdup consistently.
Avoid plain malloc()/free() in sr/srd, especially in the API calls.
Also avoid g_malloc*() in favor of g_try_malloc*().

Use g_strdup() instead of strdup() so that we can use g_free()
consistently everywhere.

Exceptions: Stuff that is allocated via other libs (not using glib),
should also be properly free'd using the respective free-ing function
(instead of g_free()). Examples: Stuff allocated by libusb, libftdi, etc.

Also, use sr_err() instead of sr_warn() for actual errors. sr_warn() is
meant for non-fatal/uncritical warnings.
2012-02-11 22:34:16 +01:00
contrib sr: udev file: Add QuantAsylum QA100, Rigol VS5202D. 2012-02-06 23:50:22 +01:00
firmware Install an empty firmware/ directory. 2011-01-20 23:23:06 +01:00
hardware Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
input Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
output Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
.gitignore More .gitignore files cleanup. 2012-01-07 14:15:10 +01:00
COPYING sr/srd: Move some files to their resp. dirs. 2011-12-30 11:14:05 +01:00
Doxyfile Doxygen config files: Initial configuration. 2011-02-08 23:59:14 +01:00
Makefile.am sr/srd: Add Doxyfile to the tarball. 2012-01-04 02:50:26 +01:00
README sr: Mark API functions with SR_API/SR_PRIV. 2012-02-02 00:03:17 +01:00
autogen.sh autogen.sh: aclocal support for Windows XP/Vista/7. 2012-02-05 12:54:44 +01:00
backend.c sr: Mark API functions with SR_API/SR_PRIV. 2012-02-02 00:03:17 +01:00
configure.ac sr: FreeBSD has zlib, but no pkg-config file for it. 2012-02-11 00:34:16 +01:00
datastore.c sr: Mark API functions with SR_API/SR_PRIV. 2012-02-02 00:03:17 +01:00
device.c sr: Mark API functions with SR_API/SR_PRIV. 2012-02-02 00:03:17 +01:00
filter.c sr: Mark API functions with SR_API/SR_PRIV. 2012-02-02 00:03:17 +01:00
hwplugin.c Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
libsigrok.pc.in libsigrok: glib-2.0 is a hard requirement. 2011-11-19 16:23:21 +01:00
log.c sr: Implement proper logging framework. 2012-02-10 09:30:40 +01:00
session.c Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
session_driver.c Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
session_file.c Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00
sigrok-internal.h Project-wide consistent naming for #include guards. 2012-02-05 15:05:13 +01:00
sigrok-proto.h sr: Implement proper logging framework. 2012-02-10 09:30:40 +01:00
sigrok.h.in sr: Doxygen comments for loglevels. 2012-02-10 09:30:40 +01:00
strutil.c Use g_try_malloc/g_free/g_strdup consistently. 2012-02-11 22:34:16 +01:00

README

-------------------------------------------------------------------------------
README
-------------------------------------------------------------------------------

The sigrok project aims at creating a portable, cross-platform,
Free/Libre/Open-Source logic analyzer software that supports various
logic analyzer hardware products.

libsigrok is a shared library written in C which provides the basic API
for talking to logic analyzer hardware and reading/writing the acquired data
into various input/output file formats.


Status and API
--------------

libsigrok is currently work in progress.

IMPORTANT: The API of libsigrok is NOT yet considered stable! Please do
           not rely on it, yet! Changes to function names, macro names etc.
           can happen at any time without prior notice!


Requirements
------------

 - git
 - gcc (>= 4.0)
 - make
 - autoconf >= 2.63
 - automake >= 1.11
 - libtool
 - pkg-config >= 0.22
 - libglib >= 2.22.0
 - libusb >= 1.0.5 (for most logic analyzer hardware)
 - libzip >= 0.8
 - zlib >= 1.2.3.1
 - libftdi >= 0.16 (for some logic analyzer hardware)
 - libudev >= 151 (for some logic analyzer hardware)


Building and installing
-----------------------

In order to get the libsigrok source code and build it, run:

 $ git clone git://sigrok.git.sourceforge.net/gitroot/sigrok/sigrok
 $ cd sigrok/libsigrok
 $ ./autogen.sh
 $ ./configure
 $ make

For installing libsigrok:

 $ make install

Please see the following wiki pages for more detailed instructions:

 http://sigrok.org/wiki/Linux
 http://sigrok.org/wiki/Mac_OS_X
 http://sigrok.org/wiki/Windows
 http://sigrok.org/wiki/FreeBSD


Mailing lists
-------------

There are two mailing lists for sigrok/libsigrok:

 https://lists.sourceforge.net/lists/listinfo/sigrok-devel
 https://lists.sourceforge.net/lists/listinfo/sigrok-commits


IRC
---

You can find the sigrok developers in the #sigrok IRC channel on Freenode.


Website
-------

http://sigrok.org