From 33102693bd7b5f96ac6d70b8deb471e04ac1a440 Mon Sep 17 00:00:00 2001 From: Greg Stein Date: Mon, 27 Nov 2000 10:18:46 +0000 Subject: [PATCH] liveprops are handled via hooks, not the dav_provider structure. clear it out of there. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87086 13f79535-47bb-0310-9956-ffa450edef68 --- modules/dav/fs/repos.c | 4 ++-- modules/dav/main/mod_dav.h | 21 +++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index b58caaf9d6..06878921f1 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -1986,8 +1986,8 @@ static const dav_provider dav_fs_provider = &dav_hooks_repository_fs, &dav_hooks_db_dbm, &dav_hooks_locks_fs, - &dav_hooks_liveprop_fs, - NULL + NULL, /* vsn */ + NULL /* binding */ }; void dav_fs_gather_propsets(apr_array_header_t *uris) diff --git a/modules/dav/main/mod_dav.h b/modules/dav/main/mod_dav.h index 67e714581d..df9cda48fa 100644 --- a/modules/dav/main/mod_dav.h +++ b/modules/dav/main/mod_dav.h @@ -59,17 +59,18 @@ #ifndef _MOD_DAV_H_ #define _MOD_DAV_H_ -#ifdef __cplusplus -extern "C" { -#endif - #include "httpd.h" #include "util_xml.h" #include "ap_hooks.h" #include "apr_hash.h" +#include "apu_dbm.h" #include /* for INT_MAX */ +#ifdef __cplusplus +extern "C" { +#endif + #define DAV_VERSION AP_SERVER_BASEREVISION @@ -517,12 +518,16 @@ ap_xml_elem *dav_find_child(const ap_xml_elem *elem, const char *tagname); ** Note that a provider cannot pick and choose portions. There are too many ** dependencies between a dav_resource (defined by ) and the other ** functionality. +** +** Live properties are not part of the dav_provider structure because they +** are handled through the AP_HOOK interface (to allow for multiple liveprop +** providers). The core always provides some properties, and then a given +** provider will add more properties. */ typedef struct { const dav_hooks_repository *repos; const dav_hooks_propdb *propdb; const dav_hooks_locks *locks; - const dav_hooks_liveprop *liveprop; const dav_hooks_vsn *vsn; const dav_hooks_binding *binding; @@ -939,11 +944,7 @@ enum { */ typedef struct dav_db dav_db; -typedef struct -{ - char *dptr; - apr_size_t dsize; -} dav_datum; +typedef apu_datum_t dav_datum; /* hook functions to enable pluggable databases */ struct dav_hooks_propdb -- 2.50.1