4f4a962000-07-04Per Hedbor // $Id: module.h,v 1.38 2000/07/04 03:44:36 per Exp $
b1fca01996-11-12Per Hedbor #ifndef ROXEN_MODULE_H #define ROXEN_MODULE_H
4f4a962000-07-04Per Hedbor // somewhat faster than 'query' #define QUERY(var) variables[ #var ]->query()
b1fca01996-11-12Per Hedbor  // Like query, but for global variables.
cb9aab1999-03-27Henrik Grubbström (Grubba) #ifdef IN_ROXEN
4f4a962000-07-04Per Hedbor #define GLOBVAR(x) variables[ #x ]->query()
cb9aab1999-03-27Henrik Grubbström (Grubba) #else /* !IN_ROXEN */
4f4a962000-07-04Per Hedbor #define GLOBVAR(x) roxenp()->variables[ #x ]->query()
cb9aab1999-03-27Henrik Grubbström (Grubba) #endif /* IN_ROXEN */
b1fca01996-11-12Per Hedbor 
c8eaf12000-03-06Martin Nilsson #define CACHE(seconds) ([mapping(string:mixed)]id->misc)->cacheable=min(([mapping(string:mixed)]id->misc)->cacheable,seconds) #define NOCACHE() ([mapping(string:mixed)]id->misc)->cacheable=0
ffae402000-04-17Martin Nilsson #define TAGDOCUMENTATION mapping tagdocumentation(){return [mapping]get_value_from_file(__FILE__,"tagdoc","#define manual\n");}
d32cfe2000-03-28Martin Nilsson  #define ROXEN_MAJOR_VERSION 2
0396532000-04-15Martin Nilsson #define ROXEN_MINOR_VERSION 1
d32cfe2000-03-28Martin Nilsson 
4f4a962000-07-04Per Hedbor  #define TYPE_STRING 1 #define TYPE_FILE 2 #define TYPE_INT 3 #define TYPE_DIR 4 #define TYPE_STRING_LIST 5 #define TYPE_MULTIPLE_STRING 5 #define TYPE_INT_LIST 6 #define TYPE_MULTIPLE_INT 6 #define TYPE_FLAG 7 #define TYPE_TOGGLE 7 #define TYPE_DIR_LIST 9 #define TYPE_FILE_LIST 10 #define TYPE_LOCATION 11 #define TYPE_TEXT_FIELD 13 #define TYPE_TEXT 13 #define TYPE_PASSWORD 14 #define TYPE_FLOAT 15 #define TYPE_MODULE 17 #define TYPE_FONT 19 #define TYPE_CUSTOM 20 #define TYPE_URL 21 #define TYPE_URL_LIST 22 #define VAR_TYPE_MASK 255 /* Not normally needed. */ #define VAR_EXPERT 256 #define VAR_MORE 512 #define VAR_DEVELOPER 1024 #define VAR_INITIAL 2048 #define MOD_ALLOW 1 #define MOD_USER 2 #define MOD_DENY 3 #define MOD_PROXY_USER 4 #define MOD_ACCEPT 5 #define MOD_ACCEPT_USER 6 #define MOD_ACCEPT_PROXY_USER 7
b1fca01996-11-12Per Hedbor #endif