No description
Find a file
Thomas Graf 8a3efffa5b Thread-safe error handling
In order for the interface to become more thread safe, the error
handling was revised to no longer depend on a static errno and
error string buffer.

This patch converts all error paths to return a libnl specific
error code which can be translated to a error message using
nl_geterror(int error). The functions nl_error() and
nl_get_errno() are therefore obsolete.

This change required various sets of function prototypes to be
changed in order to return an error code, the most prominent
are:

    struct nl_cache *foo_alloc_cache(...);
changed to:
    int foo_alloc_cache(..., struct nl_cache **);

    struct nl_msg *foo_build_request(...);
changed to:
    int foo_build_request(..., struct nl_msg **);

    struct foo *foo_parse(...);
changed to:
    int foo_parse(..., struct foo **);

This pretty much only leaves trivial allocation functions to
still return a pointer object which can still return NULL to
signal out of memory.

This change is a serious API and ABI breaker, sorry!
2008-05-14 17:49:44 +02:00
doc [PATCH] Remove autogenerated files from git and add them to .gitignore. 2008-01-10 14:57:10 +01:00
include Thread-safe error handling 2008-05-14 17:49:44 +02:00
lib Thread-safe error handling 2008-05-14 17:49:44 +02:00
src patch: fixed compilation problem for nl-route-get 2008-05-08 17:56:24 +02:00
tests Free associated caches when freeing cache manager 2008-02-05 12:35:41 +01:00
.gitignore ignore more temporary files 2008-05-05 17:13:02 +02:00
aclocal.m4 Initial import 2007-09-15 01:28:01 +02:00
ChangeLog Pushed to pre8 due to wrong version string in pre7 2007-11-21 18:24:11 +01:00
configure.in Provide libnl version in <netlink/version.h> 2008-04-30 15:43:42 +02:00
COPYING Initial import 2007-09-15 01:28:01 +02:00
install-sh Initial import 2007-09-15 01:28:01 +02:00
libnl-1.pc.in Fix from Benoit Boissinot <benoit.boissinot@ens-lyon.org> required to 2008-03-10 14:57:01 +01:00
Makefile Don't wipe cscope database on make clean 2008-04-29 22:59:30 +02:00
Makefile.opts.in Define datarootdir to silent autoconf 2008-04-29 23:01:39 +02:00
Makefile.rules Define datarootdir to silent autoconf 2008-04-29 23:01:39 +02:00