Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
-
/* $Id: module.pike,v 1.
21
1997/08/
13
19:
19
:
34
grubba Exp $ */
+
/* $Id: module.pike,v 1.
22
1997/08/
19
00
:
36
:
11
grubba Exp $ */
#include <module.h> mapping (string:mixed *) variables=([]); object this = this_object(); int module_type; string fix_cvs(string from) { from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));
Roxen.git/server/base_server/module.pike:43:
int killvar(string var) { if(!variables[var]) error("Killing undefined variable.\n"); m_delete(variables, var); return 1; } void free_some_sockets_please(){}
-
void start(void|int num) {}
+
void start(void|int num
, void|object conf
) {}
string status() {}
-
string info()
+
string info(
object conf
)
{
-
return (this->register_module()[2]);
+
return (this->register_module(
conf
)[2]);
} // Define a variable, with more than a little error checking... varargs void defvar(string var, mixed value, string name, int type, string doc_str, mixed misc, int|function not_in_config) { if(!strlen(var)) error("No name for variable!\n"); // if(var[0]=='_' && previous_object() != roxen)