]> granicus.if.org Git - apache/commitdiff
liveprops are handled via hooks, not the dav_provider structure. clear it
authorGreg Stein <gstein@apache.org>
Mon, 27 Nov 2000 10:18:46 +0000 (10:18 +0000)
committerGreg Stein <gstein@apache.org>
Mon, 27 Nov 2000 10:18:46 +0000 (10:18 +0000)
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
modules/dav/main/mod_dav.h

index b58caaf9d649f33ca80eb69136eca1bf7d3837bf..06878921f19bc55ec63d19db1ed30c7e7cd4cebf 100644 (file)
@@ -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)
index 67e714581da4b254b62fe5350e9b5ca7f7dda79f..df9cda48fab7a9510a7de4f85988b234431e3b83 100644 (file)
 #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 <limits.h>     /* 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 <repos>) 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