dect
/
libdect
Archived
13
0
Fork 0
Commit Graph

12 Commits

Author SHA1 Message Date
Patrick McHardy 3e558a2832 ie: fix compilation with refcount debugging
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-11 20:13:38 +01:00
Patrick McHardy f8bf6942ab debug: add libdect-specific assert-macro with optional backtrace support
Make assertions more useful by printing a backtrace on failed assertions.
Requires libbfd.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-14 22:07:09 +02:00
Patrick McHardy 5c1320175d libdect: include cleanup - misc cleanups
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-26 23:18:05 +02:00
Patrick McHardy 3b587ea913 Update copyright statements
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-08 21:30:57 +02:00
Patrick McHardy 1c450a1ac5 doc: fix up doxygen annotations, add some documentation
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-08 20:23:15 +02:00
Patrick McHardy 9bd59b4751 ie: fix compilation error on 64 bit
src/ie.c:33: error: conflicting types for 'dect_ie_alloc'
include/dect/ie.h:49: error: previous declaration of 'dect_ie_alloc' was here
src/ie.c:44: error: conflicting types for 'dect_ie_alloc'
include/dect/ie.h:49: error: previous declaration of 'dect_ie_alloc' was here

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-03-10 13:45:14 +01:00
Patrick McHardy 096ae54c9e ie: fix repeat indicator bugs
Appending to the list is broken and always overwrites the pointer to the
first member. Additionally lists contained in messages are not freed.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-02-28 22:40:36 +01:00
Patrick McHardy 37d31a6e42 annotate exported symbols and hide everything else
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-02-18 07:51:14 +01:00
Patrick McHardy 548fc15cb5 ie: add cloning helper
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-22 09:48:57 +01:00
Patrick McHardy 2cb704e18d ie: return void * in dect_ie_collection_hold macro
The intended use is to store the generic reference in a typed pointer, currently
requiring a cast for every use.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-27 23:47:34 +01:00
Patrick McHardy 06a41798cc ie: disable refcount debugging
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-06-20 15:10:08 +02:00
Patrick McHardy a2a5281943 ie: rework memory handling
Currently the parameters of the registered primitive callbacks are allocated
on the stack, meaning they can only be used in the callback itself and are
destroyed immediately after it returns.

This is unsuitable in combination with MM procedurs, which might interrupt
or delay other procedures, which later on need to be resumed, presumably
with the original parameters.

Introduce a common dynamically allocated and reference counted container
(struct dect_ie_collection) for collections of IEs/IE lists and use it
for callback parameters.

Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-30 16:15:24 +02:00