Branch: Tag:

2000-08-16

2000-08-16 01:14:39 by Martin Stjernholm <mast@lysator.liu.se>

Added disable_configuration and overloaded remove_configuration to help
keeping config_lookup in synch.

Rev: server/base_server/roxen.pike:1.522

4:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.      // ABS and suicide systems contributed freely by Francesco Chemolli - constant cvs_version="$Id: roxen.pike,v 1.521 2000/08/15 12:54:04 jhs Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.522 2000/08/16 01:14:39 mast Exp $";      // Used when running threaded to find out which thread is the backend thread,   // for debug purposes only.
1740:         object/*(Configuration)*/ find_configuration( string name ) + //! Searches for a configuration with a name or fullname like the + //! given string. See also get_configuration().   {    name = replace( lower_case( replace(name,"-"," ") )-" ", "/", "-" );    foreach( configurations, object/*(Configuration)*/ o )
3078:   }      object/*(Configuration)*/ get_configuration (string name) + //! Gets the configuration with the given identifier name.   {   #ifdef DEBUG    if (sizeof (configurations) != sizeof (config_lookup))
3098:    return cf;   }    + void disable_configuration (string name) + { +  if (object conf = config_lookup[name]) { +  configurations -= ({conf}); +  m_delete (config_lookup, name); +  } + } +  + void remove_configuration (string name) + { +  disable_configuration (name); +  ::remove_configuration (name); + } +    // Enable all configurations   void enable_configurations()   {