liveprop.c revision 3d81f57512275ca06a60a9bcbd23c1f8b429fdf2
/* Copyright 2000-2006 The Apache Software Foundation or its licensors, as
* applicable.
*
* Licensed 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 "apr_pools.h"
#include "apr_hash.h"
#include "apr_errno.h"
#include "apr_strings.h"
#include "util_xml.h" /* for apr_text_header */
#include "mod_dav.h"
static long dav_liveprop_count = 0;
{
dav_liveprop_count = 0;
return APR_SUCCESS;
}
{
long value;
if (dav_liveprop_uris == NULL) {
}
if (value != 0) {
/* already registered */
return;
}
/* start at 1, and count up */
(void *)++dav_liveprop_count);
}
{
}
DAV_DECLARE(long) dav_get_liveprop_ns_count(void)
{
return dav_liveprop_count;
}
{
const void *key;
void *val;
const char *s;
apr_text_append(p, phdr, s);
}
}
const dav_liveprop_group *group,
const dav_hooks_liveprop **hooks)
{
const dav_liveprop_spec *scan;
int ns;
/* first: locate the namespace in the namespace table */
break;
/* not our property (the namespace matched none of ours) */
return 0;
}
/* second: look for the property in the liveprop specs */
}
/* not our property (same namespace, but no matching prop name) */
return 0;
}
const dav_liveprop_group *group,
const dav_liveprop_spec **info)
{
const dav_liveprop_spec *scan;
/* map the provider-local NS into a global NS index */
}
}
/* assert: should not reach this point */
return 0;
}
const dav_liveprop_group *group)
{
/* register the namespace URIs */
}
}