Branch: Tag:

1998-08-10

1998-08-10 21:36:18 by Per Hedbor <ph@opera.com>

Added a new module type: MODULE_PROTOCOL, and a new module flags: MODULE_EXPERIMENTAL.

Rev: server/etc/include/module.h:1.18

1: - // $Id: module.h,v 1.17 1998/06/29 13:20:19 grubba Exp $ + // $Id: module.h,v 1.18 1998/08/10 21:36:18 per Exp $   #ifndef ROXEN_MODULE_H   #define ROXEN_MODULE_H   
83:   #define MODULE_LOGGER (2<<12)   #define MODULE_FILTER (2<<13)    - #define MODULE_SECURITY (2<<14) +       // A module which can be called from other modules, protocols, scripts etc.   #define MODULE_PROVIDER (2<<15) -  + // The module implements a protocol. + #define MODULE_PROTOCOL (2<<16)       -  + // Flags. + #define MODULE_SECURITY (2<<30) + #define MODULE_EXPERIMENTAL (2<<31) +    #define MOD_ALLOW 1   #define MOD_USER 2   #define MOD_DENY 3
103:   defvar((X)+"_slant", "plain", (Z)+": slant", TYPE_STRING_LIST, "", ({"italic","plain"}))       - #define CACHE(seconds) if(id->misc->cacheable) id->misc->cacheable=min(id->misc->cacheable,seconds);else id->misc->cacheable = seconds; + #define CACHE(seconds) id->misc->cacheable=min(id->misc->cacheable,seconds) + #define NOCACHE() id->misc->cacheable=0   #endif