Roxen.git
/
server
/
modules
/
examples
/
common_api.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/examples/common_api.pike:4:
// All roxen modules must inherit module.pike #include <roxen.h> // include roxen.h for locale specific stuff // Some defines for the translation system // //<locale-token project="mod_common_api">LOCALE</locale-token> #define LOCALE(X,Y) _DEF_LOCALE("mod_common_api",X,Y) // end of the locale related stuff
-
constant cvs_version="$Id: common_api.pike,v 1.
8
2001
/
09
/
03
18
:
05
:
10
nilsson Exp $";
+
constant cvs_version="$Id: common_api.pike,v 1.
9
2002
/
06
/
05
10
:
12
:
33
nilsson Exp $";
//! This string (filtered to remove some ugly cvs id markup) shows up in //! the roxen administration interface when handling module parameters in //! developer mode (configured under "User Settings" below the Admin tab). //! It will also serve as the basis for extracting version information of //! the file in the inherit tree. Optional, but convenient, especially if //! you use cvs for version control of your code. LocaleString module_name = LOCALE(1,"Tamaroxchi"); //! The name that will show up in the module listings when adding modules //! or viewing the modules of a virtual server. Keep it fairly informative //! and unique, since this is the only means for identification of your //! module in the most brief add module view mode. constant module_type = MODULE_ZERO;
-
//! Module type (see server/
etc
/include/module.h). May be bitwise ored
+
//! Module type (see server/
data
/include/module.h). May be bitwise ored
//! (|) for hybrid modules. Hybrid modules must implement the required //! API functions for all of the module types they are hybrids of. LocaleString module_doc_locale = LOCALE(2,"This module does nothing, but its " "inlined documentation gets imported " "into the roxen programmer manual. " "You really don't want to add this " "module to your virtual server, promise!"); //! The documentation string that will end up in the administration //! interface view of the module just below the module name. Also shows