secwmod.h

Go to the documentation of this file.
00001 /*----------------------------------------------------------------------------
00002  secwatch - Copyright (C) 2006 Nic Stevens -- See COPYING for license details
00003 ------------------------------------------------------------------------------
00004  secwmod.h  --  prototypes, typedefs, and macro definitions for loadable 
00005  modules
00006 -----------------------------------------------------------------------------*/
00007 #ifndef __SECWMOD.H
00008 #define __SECWMOD.H
00009 #define SO_OBJECT
00010 #include <configfile.h>
00011 #include <module.h>
00012 #include <hooks.h>
00013 #include <funprotos.h>
00014 
00015 #define CONFIG(x) ((cfgitem_t *)(x[0])) // get config pointer from vector
00016 #define WRITELOG(x) ((logfn_t)(x[1]))   // get writelog function from vector
00017 #define INFORM(x) ((logfn_t)(x[2]))     // get inform function from vector
00018 #define LOGHOOK(x) ((addhook_t)(x[3]))  // get addhook function from vector
00019 #define LOOPHOOK(x) ((addloop_t)(x[4])) // get addloop function from vector
00020 #endif

Generated on Tue Oct 31 10:17:23 2006 for secwatch by  doxygen 1.4.6