/* * $Header: /home/vikas/src/nocol/include/RCS/ndaemon.h,v 1.2 1999/11/05 05:27:05 vikas Exp $ */ /* ndaemon.h */ /* * Application-specific stuff. * Derived from netconsole.h */ #include "nocol.h" #include #include #include #include #include #include #include /* socket constants */ #include #include #include #include #ifndef PAUSE #define PAUSE 15 /* poll interval in seconds*/ #endif #ifndef MAXLINELEN #define MAXLINELEN 256 #endif #ifndef max #define max(a, b) ((a) > (b) ? (a) : (b)) #endif /* endif max */ char *prognm; /* program name */ char *datadir; /* Dir of data files */ char *msgsdir; /* Dir with text msg files */ /* -------------------------------------------------------------------------- * ndaemon-specific networking stuff. */ typedef struct descriptor_data DESC; struct descriptor_data { int descriptor; int sev_level; char *input_text; char *output_text; DESC *next; }; #define WALK_DESC_CHAIN(d,i) \ for (d = client_descs_head, i = 0; \ (d != NULL) && (i < nclients); \ d = d->next, i++)