/* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "httpd.h"
#include "http_config.h"
#include "apr_strings.h"
#include "ap_provider.h"
#include "mod_dav.h"
#include "locks.h"
/* per-dir configuration */
typedef struct {
const char *lockdb_path;
extern const dav_hooks_locks dav_hooks_locks_generic;
{
return conf->lockdb_path;
}
{
return apr_pcalloc(p, sizeof(dav_lock_dir_conf));
}
{
return newconf;
}
/*
* Command handler for the DAVGenericLockDB directive, which is TAKE1
*/
const char *arg1)
{
if (!conf->lockdb_path) {
}
return NULL;
}
{
/* per server */
"specify a lock database"),
{ NULL }
};
{
}
{
dav_lock_create_dir_config, /* dir config creater */
dav_lock_merge_dir_config, /* dir merger --- default is to override */
NULL, /* server config */
NULL, /* merge server config */
dav_lock_cmds, /* command table */
register_hooks, /* register hooks */
};