httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Tromey <tro...@creche.cygnus.com>
Subject Re: AddModule patch
Date Fri, 13 Sep 1996 01:03:45 GMT
>   Does anyone disagree?  Since this functionality was added for 1.2,
>   changing it now will only hurt us...

Robert> It goes against my insticts --- without the "_module" suffix,
Robert> there's a rather greater likelihood of name conflicts...

Maybe I was unclear... the only place the module name is changed is in
the module_names array in modules.c.  In particular I didn't change
the names of the structures at the C level.  So the only possible name
conflict is if two modules already have the same name.

As I understand it, module names are used by the IfModule directive,
and by mod_info (and now by my patch).  So the module names don't
share a namespace with anything else.

I've appended a "new-style" modules.c so everyone can see exactly what
I'm proposing.

Tom
-- 
tromey@cygnus.com                 Member, League for Programming Freedom

/* modules.c --- automatically generated by Apache
 * configuration script.  DO NOT HAND EDIT!!!!!
 */

#include "httpd.h"
#include "http_config.h"

extern module core_module;
extern module mime_module;
extern module access_module;
extern module auth_module;
extern module negotiation_module;
extern module includes_module;
extern module dir_module;
extern module cgi_module;
extern module userdir_module;
extern module alias_module;
extern module env_module;
extern module config_log_module;
extern module asis_module;
extern module imap_module;
extern module action_module;
extern module browser_module;
extern module agent_log_module;
extern module referer_log_module;
extern module rewrite_module;
extern module cern_meta_module;
extern module status_module;
extern module info_module;
extern module anon_auth_module;
extern module db_auth_module;
extern module dbm_auth_module;
extern module digest_module;
extern module cookies_module;
extern module proxy_module;

module *prelinked_modules[] = {
  &core_module,
  &mime_module,
  &access_module,
  &auth_module,
  &negotiation_module,
  &includes_module,
  &dir_module,
  &cgi_module,
  &userdir_module,
  &alias_module,
  &env_module,
  &config_log_module,
  &asis_module,
  &imap_module,
  &action_module,
  &browser_module,
  NULL
};
char *module_names[] = {
  "core",
  "mime",
  "access",
  "auth",
  "negotiation",
  "includes",
  "dir",
  "cgi",
  "userdir",
  "alias",
  "env",
  "config_log",
  "asis",
  "imap",
  "action",
  "browser",
  NULL
};

module *preloaded_modules[] = {
  &core_module,
  &mime_module,
  &access_module,
  &auth_module,
  &negotiation_module,
  &includes_module,
  &dir_module,
  &cgi_module,
  &userdir_module,
  &alias_module,
  &env_module,
  &config_log_module,
  &asis_module,
  &imap_module,
  &action_module,
  &browser_module,
  &agent_log_module,
  &referer_log_module,
  &rewrite_module,
  &cern_meta_module,
  &status_module,
  &info_module,
  &anon_auth_module,
  &db_auth_module,
  &dbm_auth_module,
  &digest_module,
  &cookies_module,
  &proxy_module,
  NULL
};
char *preloaded_module_names[] = {
  "core",
  "mime",
  "access",
  "auth",
  "negotiation",
  "includes",
  "dir",
  "cgi",
  "userdir",
  "alias",
  "env",
  "config_log",
  "asis",
  "imap",
  "action",
  "browser",
  "agent_log",
  "referer_log",
  "rewrite",
  "cern_meta",
  "status",
  "info",
  "anon_auth",
  "db_auth",
  "dbm_auth",
  "digest",
  "cookies",
  "proxy",
  NULL
};

Mime
View raw message