Branch: Tag:

2007-07-12

2007-07-12 18:58:18 by Martin Stjernholm <mast@lysator.liu.se>

Made module inheritance somewhat easier.

Rev: server/base_server/module.pike:1.228
Rev: server/base_server/prototypes.pike:1.192

1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS. - // $Id: module.pike,v 1.227 2006/10/13 18:20:38 mast Exp $ + // $Id: module.pike,v 1.228 2007/07/12 18:58:18 mast Exp $      #include <module_constants.h>   #include <module.h>
173:      void free_some_sockets_please(){}    + // These functions have bodies to make module inheritance easier: An + // inheriting module can always assume that the module it inherits + // have these functions defined and properly proxy the calls to them. + // Thus an inherited module should be free to define them later on + // even if it didn't have them initially. (Modules need never proxy + // calls to the default implementations here.)   void start(int variable_save, Configuration conf, void|int newly_added) {} -  + void stop() {} + void ready_to_receive_requests (Configuration conf) {}      string status() {}