]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Bug 63961: Fix modguide examples - add AP_MODULE_FLAG_NONE to module struct, use...
authorRich Bowen <rbowen@apache.org>
Sat, 2 May 2026 20:37:42 +0000 (20:37 +0000)
committerRich Bowen <rbowen@apache.org>
Sat, 2 May 2026 20:37:42 +0000 (20:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933730 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/developer/modguide.xml

index a65c2d23c35b68f7bc06f4ae5bef25018f46ebcd..c5bf54ec796c4ccc1f564e71e08bbf6565a8a56d 100644 (file)
@@ -102,7 +102,8 @@ AP_DECLARE_MODULE(example) =
     create_svr_conf, /* Per-server configuration handler */
     merge_svr_conf,  /* Merge handler for per-server configurations */
     directives,      /* Any directives we may have for httpd */
-    register_hooks   /* Our hook registering function */
+    register_hooks,  /* Our hook registering function */
+    AP_MODULE_FLAG_NONE /* Flags */
 };
 </highlight>
 <!-- END EXAMPLE CODE -->
@@ -197,7 +198,8 @@ AP_DECLARE_MODULE(example) =
     NULL,
     NULL,
     NULL,
-    register_hooks   /* Our hook registering function */
+    register_hooks,  /* Our hook registering function */
+    AP_MODULE_FLAG_NONE /* Flags */
 };
 </highlight>
 <!-- END EXAMPLE CODE -->
@@ -804,7 +806,8 @@ AP_DECLARE_MODULE(example) =
     NULL,            /* Per-server configuration handler */
     NULL,            /* Merge handler for per-server configurations */
     NULL,            /* Any directives we may have for httpd */
-    register_hooks   /* Our hook registering function */
+    register_hooks,  /* Our hook registering function */
+    AP_MODULE_FLAG_NONE /* Flags */
 };
 </highlight>
 <!-- END EXAMPLE CODE -->
@@ -843,7 +846,8 @@ AP_DECLARE_MODULE(example) =
     NULL,               /* Per-server configuration handler */
     NULL,               /* Merge handler for per-server configurations */
     example_directives, /* Any directives we may have for httpd */
-    register_hooks      /* Our hook registering function */
+    register_hooks,     /* Our hook registering function */
+    AP_MODULE_FLAG_NONE  /* Flags */
 };
 </highlight>
 <!-- END EXAMPLE CODE -->
@@ -863,7 +867,7 @@ static const command_rec        example_directives[] =
     AP_INIT_TAKE1("exampleEnabled", example_set_enabled, NULL, RSRC_CONF, "Enable or disable mod_example"),
     AP_INIT_TAKE1("examplePath", example_set_path, NULL, RSRC_CONF, "The path to whatever"),
     AP_INIT_TAKE2("exampleAction", example_set_action, NULL, RSRC_CONF, "Special action value!"),
-    { NULL }
+    { }
 };
 </highlight>
 <!-- END EXAMPLE CODE -->
@@ -1012,7 +1016,7 @@ static const command_rec        example_directives[] =
     AP_INIT_TAKE1("exampleEnabled", example_set_enabled, NULL, RSRC_CONF, "Enable or disable mod_example"),
     AP_INIT_TAKE1("examplePath", example_set_path, NULL, RSRC_CONF, "The path to whatever"),
     AP_INIT_TAKE2("exampleAction", example_set_action, NULL, RSRC_CONF, "Special action value!"),
-    { NULL }
+    { }
 };
 /*
  ==============================================================================
@@ -1054,7 +1058,8 @@ AP_DECLARE_MODULE(example) =
     NULL,               /* Per-server configuration handler */
     NULL,               /* Merge handler for per-server configurations */
     example_directives, /* Any directives we may have for httpd */
-    register_hooks      /* Our hook registering function */
+    register_hooks,     /* Our hook registering function */
+    AP_MODULE_FLAG_NONE  /* Flags */
 };
 </highlight>
 <!-- END EXAMPLE CODE -->
@@ -1219,7 +1224,8 @@ AP_DECLARE_MODULE(example) =
     NULL,            /* Per-server configuration handler */
     NULL,            /* Merge handler for per-server configurations */
     directives,      /* Any directives we may have for httpd */
-    register_hooks   /* Our hook registering function */
+    register_hooks,  /* Our hook registering function */
+    AP_MODULE_FLAG_NONE /* Flags */
 };
 </highlight>
 <!-- END EXAMPLE CODE -->
@@ -1400,7 +1406,7 @@ static const command_rec    directives[] =
     AP_INIT_TAKE1("exampleEnabled", example_set_enabled, NULL, ACCESS_CONF, "Enable or disable mod_example"),
     AP_INIT_TAKE1("examplePath", example_set_path, NULL, ACCESS_CONF, "The path to whatever"),
     AP_INIT_TAKE2("exampleAction", example_set_action, NULL, ACCESS_CONF, "Special action value!"),
-    { NULL }
+    { }
 };
 
 /*$1
@@ -1417,7 +1423,8 @@ AP_DECLARE_MODULE(example) =
     NULL,               /* Per-server configuration handler */
     NULL,               /* Merge handler for per-server configurations */
     directives,         /* Any directives we may have for httpd */
-    register_hooks      /* Our hook registering function */
+    register_hooks,     /* Our hook registering function */
+    AP_MODULE_FLAG_NONE  /* Flags */
 };
 
 /*