X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=para.h;h=9ee318e54e4cb1dae4798f41d60c9187dde517b2;hp=2c95f817b5bb8a43538ab93743fa92148c886ba6;hb=84f3cda92d0fb3d072b1a2d9bf8c2156c18d6398;hpb=e0133f661a998cf76eafd8ed36769c5d840410f6 diff --git a/para.h b/para.h index 2c95f817..9ee318e5 100644 --- a/para.h +++ b/para.h @@ -158,15 +158,15 @@ int tv_convex_combination(const long a, const struct timeval *tv1, struct timeval *result); void ms2tv(const long unsigned n, struct timeval *tv); +/** The enum of all status items. */ enum status_items {STATUS_ITEM_ENUM NUM_STAT_ITEMS}; extern const char *status_item_list[]; - +/** Loop over each status item. */ +#define FOR_EACH_STATUS_ITEM(i) for (i = 0; i < NUM_STAT_ITEMS; i++) int stat_item_valid(const char *item); int stat_line_valid(const char *); void stat_client_write(const char *msg, int itemnum); int stat_client_add(int fd, long unsigned mask); -/** Loop over each status item. */ -#define FOR_EACH_STAT_ITEM(i) for (i = 0; i < NUM_STAT_ITEMS; i++) __printf_2_3 void para_log(int, const char*, ...);