_____________________________________________________________________________
/ / Index / Goinfre / Resume / Links / Contact / Sitemap / .: v0.6.1.0 |^|
|\__/-------+ +--------+-------+---------+---------+-----------------+#|
| 1| /goinfre/libs/libevent/debug.c |#|
| 2| ========================================== |#|
| 3| |#|
| 4| [ raw ] [ download ] |#|
| 5| ` `` ````````````````````` |#|
| 6| |#|
| 7| /** |#|
| 8| * libevent/debug.c |#|
| 9| * |#|
| 10| * Copyright (c) Manfred Touron 2008 |#|
| 11| */ |#|
| 12| |#|
| 13| #include <stdlib.h> |#|
| 14| #include <unistd.h> |#|
| 15| #include <stdio.h> |#|
| 16| #include <string.h> |#|
| 17| |#|
| 18| #include <liblc/liblc.h> |#|
| 19| |#|
| 20| #include "core.h" |#|
| 21| |#|
| 22| int event_e_debug(void *ptr) |#|
| 23| { |#|
| 24| event e; |#|
| 25| |#|
| 26| e = ptr; |#|
| 27| if (e == NULL) | |
| 28| return (0); | |
| 29| printf("name: %s, length: %d\n", | |
| 30| e->name, lc_length(e->lc)); | |
| 31| return (1); | |
| 32| } | |
| 33| | |
| 34| void event_debug(const char *name) | |
| 35| { | |
| 36| event_e_debug(events_find(name)); | |
| 37| return ; | |
| 38| } | |
| 39| | |
+---+ | |
\_ \______ mo5.so - normal - 1337.so - rev.so - video_r.so +---------------+ |
|__ \_____ plain.so - color.so - comment.so / moul 2008 (c) |V|
\-----\______\________________________________________/-----------------+-+