X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=para.h;h=280c282323db369e7d0e84173324016aa425a92d;hb=6bbc7c29dd69ed34ef90dac72951abbfd7cc1877;hp=b406818bd52a27bfc1794e0c95d8f9c0e9ef12a0;hpb=c75c35b176cdacf157d27617e954961c88f33975;p=paraslash.git diff --git a/para.h b/para.h index b406818b..280c2823 100644 --- a/para.h +++ b/para.h @@ -20,6 +20,8 @@ #include #include #include +#include + #include "gcc-compat.h" /** used in various contexts */ @@ -44,7 +46,6 @@ typeof(x) _x = (x); \ _x > 0? _x : -_x; }) - extern __printf_2_3 void (*para_log)(int, const char*, ...); /** * Define a standard log function that always writes to stderr. @@ -221,6 +222,7 @@ enum loglevels {LOGLEVELS, NUM_LOGLEVELS}; #define PARA_CRIT_LOG(f,...) para_log(LL_CRIT, "%s: " f, __FUNCTION__, ## __VA_ARGS__) #define PARA_EMERG_LOG(f,...) para_log(LL_EMERG, "%s: " f, __FUNCTION__, ## __VA_ARGS__) +/** \cond status_items */ #define STATUS_ITEMS \ STATUS_ITEM(basename) \ STATUS_ITEM(status) \ @@ -268,6 +270,7 @@ enum loglevels {LOGLEVELS, NUM_LOGLEVELS}; enum status_items {STATUS_ITEMS NUM_STAT_ITEMS}; #undef STATUS_ITEM #define STATUS_ITEM(_name) #_name, +/** \endcond status items */ extern const char *status_item_list[]; /** Loop over each status item. */