_____________________________________________________________________________
/ / Index / Goinfre / Resume / Links / Contact / Sitemap / .: v0.6.1.0 |^|
|\__/-------+ +--------+-------+---------+---------+-----------------+#|
| 1| /goinfre/libs/libevent/event.c |#|
| 2| ========================================== |#|
| 3| |#|
| 4| [ raw ] [ download ] |#|
| 5| ` `` ````````````````````` |#|
| 6| |#|
| 7| /** |#|
| 8| * libevent/event.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| event event_new(const char *name) |#|
| 23| { | |
| 24| event new; | |
| 25| | |
| 26| if ((new = ALLOC(event)) == NULL) | |
| 27| perror("malloc"); | |
| 28| new->name = name; | |
| 29| new->lc = lc_new(); | |
| 30| events_add(new); | |
| 31| return (new); | |
| 32| } | |
| 33| | |
+---+ | |
\_ \______ mo5.so - normal - 1337.so - rev.so - video_r.so +---------------+ |
|__ \_____ plain.so - color.so - comment.so / moul 2008 (c) |V|
\-----\______\________________________________________/-----------------+-+