Return-Path: Delivered-To: apmail-apache-cvs-archive@apache.org Received: (qmail 48292 invoked by uid 500); 19 Nov 2000 02:13:58 -0000 Mailing-List: contact apache-cvs-help@apache.org; run by ezmlm Precedence: bulk Reply-To: new-httpd@apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list apache-cvs@apache.org Received: (qmail 48278 invoked by uid 500); 19 Nov 2000 02:13:56 -0000 Delivered-To: apmail-apache-2.0-cvs@apache.org Date: 19 Nov 2000 02:13:56 -0000 Message-ID: <20001119021356.48274.qmail@locus.apache.org> From: gstein@locus.apache.org To: apache-2.0-cvs@apache.org Subject: cvs commit: apache-2.0/src/modules/dav/main mod_dav.h gstein 00/11/18 18:13:55 Modified: src/modules/dav/fs repos.c src/modules/dav/main mod_dav.h Log: clean out some liveprop hooks which are now handled by AP_HOOK functions Revision Changes Path 1.30 +1 -8 apache-2.0/src/modules/dav/fs/repos.c Index: repos.c =================================================================== RCS file: /home/cvs/apache-2.0/src/modules/dav/fs/repos.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -u -r1.29 -r1.30 --- repos.c 2000/11/18 13:53:07 1.29 +++ repos.c 2000/11/19 02:13:54 1.30 @@ -2042,20 +2042,13 @@ static const dav_hooks_liveprop dav_hooks_liveprop_fs = { -#ifdef WIN32 - NULL, -#else - "http://apache.org/dav/propset/fs/1", /* filesystem, set 1 */ -#endif - dav_fs_find_prop, dav_fs_insert_prop, - dav_fs_insert_all, dav_fs_is_writeable, dav_fs_namespace_uris, dav_fs_patch_validate, dav_fs_patch_exec, dav_fs_patch_commit, - dav_fs_patch_rollback, + dav_fs_patch_rollback }; static const dav_provider dav_fs_provider = 1.27 +37 -33 apache-2.0/src/modules/dav/main/mod_dav.h Index: mod_dav.h =================================================================== RCS file: /home/cvs/apache-2.0/src/modules/dav/main/mod_dav.h,v retrieving revision 1.26 retrieving revision 1.27 diff -u -u -r1.26 -r1.27 --- mod_dav.h 2000/11/18 01:29:06 1.26 +++ mod_dav.h 2000/11/19 02:13:55 1.27 @@ -523,11 +523,48 @@ } dav_provider; +/* +** gather_propsets: gather all live property propset-URIs +** +** The hook implementor should push one or more URIs into the specified +** array. These URIs are returned in the DAV: header to let clients know +** what sets of live properties are supported by the installation. mod_dav +** will place open/close angle brackets around each value (much like +** a Coded-URL); quotes and brackets should not be in the value. +** +** Example: http://apache.org/dav/props/ +** +** (of course, use your own domain to ensure a unique value) +*/ AP_DECLARE_EXTERNAL_HOOK(DAV, void, gather_propsets, (apr_array_header_t *uris)) + +/* +** find_liveprop: find a live property, returning a non-zero, unique, +** opaque identifier. +** +** If the hook implementor determines the specified URI/name refers to +** one of its properties, then it should fill in HOOKS and return a +** non-zero value. The returned value is the "property ID" and will +** be passed to the various liveprop hook functions. +** +** Return 0 if the property is not defined by the hook implementor. +*/ AP_DECLARE_EXTERNAL_HOOK(DAV, int, find_liveprop, (request_rec *r, const char *ns_uri, const char *name, const dav_hooks_liveprop **hooks)) + +/* +** insert_all_liveprops: insert all (known) live property names/values. +** +** The hook implementor should append XML text to PHDR, containing liveprop +** names. If INSVALUE is true, then the property values should also be +** inserted into the output XML stream. +** +** The liveprop provider should insert *all* known and *defined* live +** properties on the specified resource. If a particular liveprop is +** not defined for this resource, then it should not be inserted. +*/ AP_DECLARE_EXTERNAL_HOOK(DAV, void, insert_all_liveprops, (request_rec *r, const dav_resource *resource, int insvalue, ap_text_header *phdr)) @@ -653,31 +690,6 @@ struct dav_hooks_liveprop { /* - ** This URI is returned in the DAV: header to let clients know what - ** sets of live properties are supported by the installation. mod_dav - ** will place open/close angle brackets around this value (much like - ** a Coded-URL); quotes and brackets should not be in the value. - ** - ** Example: http://apache.org/dav/props/ - ** - ** (of course, use your own domain to ensure a unique value) - */ - const char * propset_uri; - - /* - ** Find a property, returning a non-zero, unique, opaque identifier. - ** - ** NOTE: Providers must ensure this identifier is universally unique. - ** See the registration table below. - ** ### it would be nice to avoid this uniqueness constraint. however, - ** ### that would mean our xml_elem annotation concept would need to - ** ### change (w.r.t. the fact that it acts as a cache for find_prop). - ** - ** Returns 0 if the property is not defined by this provider. - */ - int (*find_prop)(const char *ns_uri, const char *name); - - /* ** Insert a property name/value into a text block. The property to ** insert is identified by the propid value. Providers should return ** DAV_PROP_INSERT_NOTME if they do not define the specified propid. @@ -692,14 +704,6 @@ dav_prop_insert (*insert_prop)(const dav_resource *resource, int propid, int insvalue, ap_text_header *phdr); - - /* - ** Insert all known/defined property names (and values). This is - ** similar to insert_prop, but *all* properties will be inserted - ** rather than specific, individual properties. - */ - void (*insert_all)(const dav_resource *resource, int insvalue, - ap_text_header *phdr); /* ** Determine whether a given property is writeable.