Back to square one
[hcoop/zz_old/modwaklog.git] / mod_waklog.c
index 8e1a8af..5d9b2a5 100644 (file)
@@ -51,6 +51,22 @@ typedef struct {
 waklog_child_config    child;
 
 
+    static void *
+waklog_create_dir_config( pool *p, char *path )
+{
+    waklog_host_config *cfg;
+
+    cfg = (waklog_host_config *)ap_pcalloc( p, sizeof( waklog_host_config ));
+    cfg->configured = 0;
+    cfg->protect = 0;
+    cfg->keytab = KEYTAB;
+    cfg->keytab_principal = KEYTAB_PRINCIPAL;
+    cfg->afs_cell = AFS_CELL;
+
+    return( cfg );
+}
+
+
     static void *
 waklog_create_server_config( pool *p, server_rec *s )
 {
@@ -63,6 +79,10 @@ waklog_create_server_config( pool *p, server_rec *s )
     cfg->keytab_principal = KEYTAB_PRINCIPAL;
     cfg->afs_cell = AFS_CELL;
 
+#if 0
+    ap_set_module_config( s->module_config, &waklog_module, cfg);
+#endif /* 0 */
+
     return( cfg );
 }
 
@@ -610,7 +630,7 @@ waklog_new_connection( conn_rec *c ) {
 module MODULE_VAR_EXPORT waklog_module = {
     STANDARD_MODULE_STUFF, 
     waklog_init,           /* module initializer                  */
-    NULL,                 /* create per-dir    config structures */
+    waklog_create_dir_config, /* create per-dir    config structures */
     NULL,                  /* merge  per-dir    config structures */
     waklog_create_server_config, /* create per-server config structures */
     NULL,                  /* merge  per-server config structures */