Patrick McHardy
931c335680
debug: make debugging more colorful
...
Add definitions for the various libdect subsystems, pass them to the
registered debugging handlers and add a handler to the example programs
to colorize debugging messages.
Still could use some cleanup, but causes too many clashes.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-24 21:49:43 +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
5c0c205ca6
utils: move file handling functions to seperate file
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-03 10:20:18 +02:00
Patrick McHardy
d7581ae5e0
libdect: make struct dect_fd opaque
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-07-03 09:30:09 +02:00
Patrick McHardy
92e6ddcfe8
timer: move timer functions into seperate files
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-03-31 03:28:47 +02: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
0d301955cf
debug: allow to disable debugging code
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-02-18 03:56:15 +01:00
Patrick McHardy
d373de1497
utils: fix left-over flag dumping and always print raw value
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-18 03:46:02 +01:00
Patrick McHardy
93e0de4ee9
utils/s_msg: avoid out-of-bound reads when converting values to strings
...
Add translation tables to convert numeric identifiers to strings while
avoiding reading outside of the array bounds, like the current plain
dereferences might do in some cases.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-12-14 01:20:18 +01:00
Patrick McHardy
a95986894f
hexdump: avoid memset
...
Simply terminate the string before printing it.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-24 04:37:34 +01:00
Patrick McHardy
3ba111506e
timers: cancel active timers when rescheduling
...
dect_start_timer() is supposed to handle both inactive and active timers.
Cancel already active timers before rearming them to support timer
infrastructures that can't deal with this themselves, like asterisk.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-15 18:39:55 +01:00
Patrick McHardy
33b2667942
utils: include ascii output in hexdump
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-14 14:25:41 +01:00
Patrick McHardy
d7b994ff42
timer: fix dect_alloc_timer() to initialize ->state
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-13 19:37:42 +01:00
Patrick McHardy
bd0dc14441
utils: add dect_timer_running()
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-11-13 02:30:52 +01:00
Patrick McHardy
a489a1626b
utils: add running/stopped state to timers
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-23 05:47:13 +02:00
Patrick McHardy
e795362c37
utils: add fd initialization helper
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-23 00:53:28 +02:00
Patrick McHardy
dbf68ba8b3
utils: add timer setup helper
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-22 02:12:55 +02:00
Patrick McHardy
0406a88b39
Import libdect
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2009-05-06 18:41:57 +02:00