Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 15194 invoked from network); 5 Apr 2005 15:51:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2005 15:51:48 -0000 Received: (qmail 68049 invoked by uid 500); 5 Apr 2005 15:51:47 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 68030 invoked by uid 500); 5 Apr 2005 15:51:47 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 68010 invoked by uid 99); 5 Apr 2005 15:51:47 -0000 X-ASF-Spam-Status: No, hits=-9.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 05 Apr 2005 08:51:46 -0700 Received: (qmail 15178 invoked by uid 65534); 5 Apr 2005 15:51:45 -0000 Message-ID: <20050405155145.15175.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: svnmailer-1.0.0-dev Date: Tue, 05 Apr 2005 15:51:44 -0000 Subject: svn commit: r160188 - in httpd/httpd/branches/2.0.x: CHANGES modules/dav/main/liveprop.c modules/dav/main/mod_dav.c modules/dav/main/mod_dav.h modules/dav/main/props.c modules/dav/main/providers.c modules/dav/main/std_liveprop.c modules/dav/main/util.c modules/dav/main/util_lock.c To: cvs@httpd.apache.org From: jerenkrantz@apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jerenkrantz Date: Tue Apr 5 08:51:42 2005 New Revision: 160188 URL: http://svn.apache.org/viewcvs?view=3Drev&rev=3D160188 Log: Correctly export all mod_dav public functions. * modules/dav/main/mod_dav.h: Wrap all public functions in DAV_DECLARE or DAV_DECLARE_NONSTD. * modules/dav/main/liveprop.c, modules/dav/main/props.c, modules/dav/main/util_lock.c, modules/dav/main/mod_dav.c, modules/dav/main/std_liveprop.c, modules/dav/main/util.c: Update function definitions. Submitted by: Branko =C4=8Cibej Reviewed by: Justin Erenkrantz, Paul Querna, Sander Striker Modified: httpd/httpd/branches/2.0.x/CHANGES httpd/httpd/branches/2.0.x/modules/dav/main/liveprop.c httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.c httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.h httpd/httpd/branches/2.0.x/modules/dav/main/props.c httpd/httpd/branches/2.0.x/modules/dav/main/providers.c httpd/httpd/branches/2.0.x/modules/dav/main/std_liveprop.c httpd/httpd/branches/2.0.x/modules/dav/main/util.c httpd/httpd/branches/2.0.x/modules/dav/main/util_lock.c Modified: httpd/httpd/branches/2.0.x/CHANGES URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/CHANGES?view= =3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/CHANGES (original) +++ httpd/httpd/branches/2.0.x/CHANGES Tue Apr 5 08:51:42 2005 @@ -1,5 +1,8 @@ Changes with Apache 2.0.54 =20 + *) Correctly export all mod_dav public functions. + [Branko =C3=88ibej ] + *) Add a build script to create a solaris package. [Graham Leggett] =20 *) worker MPM: Fix a problem which could cause httpd processes to Modified: httpd/httpd/branches/2.0.x/modules/dav/main/liveprop.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/liveprop.c?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/liveprop.c (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/liveprop.c Tue Apr 5 08:51= :42 2005 @@ -58,12 +58,13 @@ return (int)apr_hash_get(dav_liveprop_uris, uri, APR_HASH_KEY_STRING); } =20 -int dav_get_liveprop_ns_count(void) +DAV_DECLARE(int) dav_get_liveprop_ns_count(void) { return dav_liveprop_count; } =20 -void dav_add_all_liveprop_xmlns(apr_pool_t *p, apr_text_header *phdr) +DAV_DECLARE(void) dav_add_all_liveprop_xmlns(apr_pool_t *p, + apr_text_header *phdr) { apr_hash_index_t *idx =3D apr_hash_first(p, dav_liveprop_uris); =20 Modified: httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/mod_dav.c?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.c (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.c Tue Apr 5 08:51:= 42 2005 @@ -212,27 +212,27 @@ return conf->provider; } =20 -const dav_hooks_locks *dav_get_lock_hooks(request_rec *r) +DAV_DECLARE(const dav_hooks_locks *) dav_get_lock_hooks(request_rec *r) { return dav_get_provider(r)->locks; } =20 -const dav_hooks_propdb *dav_get_propdb_hooks(request_rec *r) +DAV_DECLARE(const dav_hooks_propdb *) dav_get_propdb_hooks(request_rec *r) { return dav_get_provider(r)->propdb; } =20 -const dav_hooks_vsn *dav_get_vsn_hooks(request_rec *r) +DAV_DECLARE(const dav_hooks_vsn *) dav_get_vsn_hooks(request_rec *r) { return dav_get_provider(r)->vsn; } =20 -const dav_hooks_binding *dav_get_binding_hooks(request_rec *r) +DAV_DECLARE(const dav_hooks_binding *) dav_get_binding_hooks(request_rec *= r) { return dav_get_provider(r)->binding; } =20 -const dav_hooks_search *dav_get_search_hooks(request_rec *r) +DAV_DECLARE(const dav_hooks_search *) dav_get_search_hooks(request_rec *r) { return dav_get_provider(r)->search; } @@ -634,7 +634,7 @@ } =20 /* ### move to dav_util? */ -int dav_get_depth(request_rec *r, int def_depth) +DAV_DECLARE(int) dav_get_depth(request_rec *r, int def_depth) { const char *depth =3D apr_table_get(r->headers_in, "Depth"); =20 Modified: httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.h URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/mod_dav.h?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.h (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/mod_dav.h Tue Apr 5 08:51:= 42 2005 @@ -464,8 +464,8 @@ } dav_lookup_result; =20 =20 -dav_lookup_result dav_lookup_uri(const char *uri, request_rec *r, - int must_be_absolute); +DAV_DECLARE(dav_lookup_result) dav_lookup_uri(const char *uri, request_rec= *r, + int must_be_absolute); =20 /* defines type of property info a provider is to return */ typedef enum { @@ -492,10 +492,12 @@ #define DAV_STYLE_RFC822 2 #define DAV_TIMEBUF_SIZE 30 =20 -int dav_get_depth(request_rec *r, int def_depth); +DAV_DECLARE(int) dav_get_depth(request_rec *r, int def_depth); =20 -int dav_validate_root(const apr_xml_doc *doc, const char *tagname); -apr_xml_elem *dav_find_child(const apr_xml_elem *elem, const char *tagname= ); +DAV_DECLARE(int) dav_validate_root(const apr_xml_doc *doc, + const char *tagname); +DAV_DECLARE(apr_xml_elem *) dav_find_child(const apr_xml_elem *elem, + const char *tagname); =20 /* gather up all the CDATA into a single string */ DAV_DECLARE(const char *) dav_xml_get_cdata(const apr_xml_elem *elem, apr_= pool_t *pool, @@ -631,15 +633,15 @@ (request_rec *r, const dav_resource *resource, dav_prop_insert what, apr_text_header *phdr)) =20 -const dav_hooks_locks *dav_get_lock_hooks(request_rec *r); -const dav_hooks_propdb *dav_get_propdb_hooks(request_rec *r); -const dav_hooks_vsn *dav_get_vsn_hooks(request_rec *r); -const dav_hooks_binding *dav_get_binding_hooks(request_rec *r); -const dav_hooks_search *dav_get_search_hooks(request_rec *r); +DAV_DECLARE(const dav_hooks_locks *) dav_get_lock_hooks(request_rec *r); +DAV_DECLARE(const dav_hooks_propdb *) dav_get_propdb_hooks(request_rec *r); +DAV_DECLARE(const dav_hooks_vsn *) dav_get_vsn_hooks(request_rec *r); +DAV_DECLARE(const dav_hooks_binding *) dav_get_binding_hooks(request_rec *= r); +DAV_DECLARE(const dav_hooks_search *) dav_get_search_hooks(request_rec *r); =20 DAV_DECLARE(void) dav_register_provider(apr_pool_t *p, const char *name, const dav_provider *hooks); -const dav_provider * dav_lookup_provider(const char *name); +DAV_DECLARE(const dav_provider *) dav_lookup_provider(const char *name); =20 =20 /* ### deprecated */ @@ -712,7 +714,8 @@ struct dav_locktoken_list *next; } dav_locktoken_list; =20 -dav_error * dav_get_locktoken_list(request_rec *r, dav_locktoken_list **lt= l); +DAV_DECLARE(dav_error *) dav_get_locktoken_list(request_rec *r, + dav_locktoken_list **ltl); =20 =20 /* -------------------------------------------------------------------- @@ -885,22 +888,27 @@ DAV_DECLARE(int) dav_get_liveprop_ns_index(const char *uri); =20 /* ### docco */ -int dav_get_liveprop_ns_count(void); +DAV_DECLARE(int) dav_get_liveprop_ns_count(void); =20 /* ### docco */ -void dav_add_all_liveprop_xmlns(apr_pool_t *p, apr_text_header *phdr); +DAV_DECLARE(void) dav_add_all_liveprop_xmlns(apr_pool_t *p, + apr_text_header *phdr); =20 /* ** The following three functions are part of mod_dav's internal handling ** for the core WebDAV properties. They are not part of mod_dav's API. */ -int dav_core_find_liveprop(const dav_resource *resource, - const char *ns_uri, const char *name, - const dav_hooks_liveprop **hooks); -void dav_core_insert_all_liveprops(request_rec *r, - const dav_resource *resource, - dav_prop_insert what, apr_text_header *= phdr); -void dav_core_register_uris(apr_pool_t *p); +DAV_DECLARE_NONSTD(int) dav_core_find_liveprop( + const dav_resource *resource, + const char *ns_uri, + const char *name, + const dav_hooks_liveprop **hooks); +DAV_DECLARE_NONSTD(void) dav_core_insert_all_liveprops( + request_rec *r, + const dav_resource *resource, + dav_prop_insert what, + apr_text_header *phdr); +DAV_DECLARE_NONSTD(void) dav_core_register_uris(apr_pool_t *p); =20 =20 /* @@ -1126,7 +1134,7 @@ /* Used to represent a Timeout header of "Infinity" */ #define DAV_TIMEOUT_INFINITE 0 =20 -time_t dav_get_timeout(request_rec *r); +DAV_DECLARE(time_t) dav_get_timeout(request_rec *r); =20 /* ** Opaque, provider-specific information for a lock database. @@ -1221,34 +1229,40 @@ } dav_lock; =20 /* Property-related public lock functions */ -const char *dav_lock_get_activelock(request_rec *r, dav_lock *locks, - dav_buffer *pbuf); +DAV_DECLARE(const char *)dav_lock_get_activelock(request_rec *r, + dav_lock *locks, + dav_buffer *pbuf); =20 /* LockDB-related public lock functions */ -dav_error * dav_lock_parse_lockinfo(request_rec *r, - const dav_resource *resrouce, - dav_lockdb *lockdb, - const apr_xml_doc *doc, - dav_lock **lock_request); -int dav_unlock(request_rec *r, const dav_resource *resource, - const dav_locktoken *locktoken); -dav_error * dav_add_lock(request_rec *r, const dav_resource *resource, - dav_lockdb *lockdb, dav_lock *request, - dav_response **response); -dav_error * dav_notify_created(request_rec *r, - dav_lockdb *lockdb, - const dav_resource *resource, - int resource_state, - int depth); +DAV_DECLARE(dav_error *) dav_lock_parse_lockinfo(request_rec *r, + const dav_resource *resro= uce, + dav_lockdb *lockdb, + const apr_xml_doc *doc, + dav_lock **lock_request); +DAV_DECLARE(int) dav_unlock(request_rec *r, + const dav_resource *resource, + const dav_locktoken *locktoken); +DAV_DECLARE(dav_error *) dav_add_lock(request_rec *r, + const dav_resource *resource, + dav_lockdb *lockdb, dav_lock *reques= t, + dav_response **response); +DAV_DECLARE(dav_error *) dav_notify_created(request_rec *r, + dav_lockdb *lockdb, + const dav_resource *resource, + int resource_state, + int depth); =20 DAV_DECLARE(dav_error*) dav_lock_query(dav_lockdb *lockdb,=20 const dav_resource *resource, dav_lock **locks); =20 -dav_error * dav_validate_request(request_rec *r, dav_resource *resource, - int depth, dav_locktoken *locktoken, - dav_response **response, int flags, - dav_lockdb *lockdb); +DAV_DECLARE(dav_error *) dav_validate_request(request_rec *r, + dav_resource *resource, + int depth, + dav_locktoken *locktoken, + dav_response **response, + int flags, + dav_lockdb *lockdb); /* ** flags: ** 0x0F -- reserved for values @@ -1263,7 +1277,8 @@ #define DAV_VALIDATE_IS_PARENT 0x0100 /* for internal use */ =20 /* Lock-null related public lock functions */ -int dav_get_resource_state(request_rec *r, const dav_resource *resource); +DAV_DECLARE(int) dav_get_resource_state(request_rec *r, + const dav_resource *resource); =20 /* Lock provider hooks. Locking is optional, so there may be no * lock provider for a given repository. @@ -1484,7 +1499,7 @@ typedef struct dav_propdb dav_propdb; =20 =20 -dav_error *dav_open_propdb( +DAV_DECLARE(dav_error *) dav_open_propdb( request_rec *r, dav_lockdb *lockdb, const dav_resource *resource, @@ -1492,17 +1507,17 @@ apr_array_header_t *ns_xlate, dav_propdb **propdb); =20 -void dav_close_propdb(dav_propdb *db); +DAV_DECLARE(void) dav_close_propdb(dav_propdb *db); =20 -dav_get_props_result dav_get_props( +DAV_DECLARE(dav_get_props_result) dav_get_props( dav_propdb *db, apr_xml_doc *doc); =20 -dav_get_props_result dav_get_allprops( +DAV_DECLARE(dav_get_props_result) dav_get_allprops( dav_propdb *db, dav_prop_insert what); =20 -void dav_get_liveprop_supported( +DAV_DECLARE(void) dav_get_liveprop_supported( dav_propdb *propdb, const char *ns_uri, const char *propname, @@ -1567,10 +1582,10 @@ =20 } dav_prop_ctx; =20 -void dav_prop_validate(dav_prop_ctx *ctx); -void dav_prop_exec(dav_prop_ctx *ctx); -void dav_prop_commit(dav_prop_ctx *ctx); -void dav_prop_rollback(dav_prop_ctx *ctx); +DAV_DECLARE_NONSTD(void) dav_prop_validate(dav_prop_ctx *ctx); +DAV_DECLARE_NONSTD(void) dav_prop_exec(dav_prop_ctx *ctx); +DAV_DECLARE_NONSTD(void) dav_prop_commit(dav_prop_ctx *ctx); +DAV_DECLARE_NONSTD(void) dav_prop_rollback(dav_prop_ctx *ctx); =20 #define DAV_PROP_CTX_HAS_ERR(dpc) ((dpc).err && (dpc).err->status >=3D 30= 0) =20 @@ -1933,9 +1948,9 @@ * If there were any headers in the request which require a Vary header * in the response, add it. */ -void dav_add_vary_header(request_rec *in_req, - request_rec *out_req, - const dav_resource *resource); +DAV_DECLARE(void) dav_add_vary_header(request_rec *in_req, + request_rec *out_req, + const dav_resource *resource); =20 /* ** Flags specifying auto-versioning behavior, returned by @@ -1994,7 +2009,7 @@ * to restore both parent and child resources to the state they were in * before the auto-versioning operations occurred. */ -dav_error *dav_auto_checkout( +DAV_DECLARE(dav_error *) dav_auto_checkout( request_rec *r, dav_resource *resource, int parent_only, @@ -2015,7 +2030,7 @@ * was checked out (i.e. the parent_only was !=3D 0 in the * dav_auto_checkout call). */ -dav_error *dav_auto_checkin( +DAV_DECLARE(dav_error *) dav_auto_checkin( request_rec *r, dav_resource *resource, int undo, @@ -2391,7 +2406,7 @@ */ =20 /* fetch the "LimitXMLRequestBody" in force for this resource */ -apr_size_t dav_get_limit_xml_body(const request_rec *r); +DAV_DECLARE(apr_size_t) dav_get_limit_xml_body(const request_rec *r); =20 typedef struct { int propid; /* live property ID */ Modified: httpd/httpd/branches/2.0.x/modules/dav/main/props.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/props.c?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/props.c (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/props.c Tue Apr 5 08:51:42= 2005 @@ -514,11 +514,11 @@ return NULL; } =20 -dav_error *dav_open_propdb(request_rec *r, dav_lockdb *lockdb, - const dav_resource *resource, - int ro, - apr_array_header_t * ns_xlate, - dav_propdb **p_propdb) +DAV_DECLARE(dav_error *)dav_open_propdb(request_rec *r, dav_lockdb *lockdb, + const dav_resource *resource, + int ro, + apr_array_header_t * ns_xlate, + dav_propdb **p_propdb) { dav_propdb *propdb =3D apr_pcalloc(r->pool, sizeof(*propdb)); =20 @@ -552,7 +552,7 @@ return NULL; } =20 -void dav_close_propdb(dav_propdb *propdb) +DAV_DECLARE(void) dav_close_propdb(dav_propdb *propdb) { if (propdb->db =3D=3D NULL) return; @@ -560,7 +560,8 @@ (*propdb->db_hooks->close)(propdb->db); } =20 -dav_get_props_result dav_get_allprops(dav_propdb *propdb, dav_prop_insert = what) +DAV_DECLARE(dav_get_props_result) dav_get_allprops(dav_propdb *propdb, + dav_prop_insert what) { const dav_hooks_db *db_hooks =3D propdb->db_hooks; apr_text_header hdr =3D { 0 }; @@ -687,7 +688,8 @@ return result; } =20 -dav_get_props_result dav_get_props(dav_propdb *propdb, apr_xml_doc *doc) +DAV_DECLARE(dav_get_props_result) dav_get_props(dav_propdb *propdb, + apr_xml_doc *doc) { const dav_hooks_db *db_hooks =3D propdb->db_hooks; apr_xml_elem *elem =3D dav_find_child(doc->root, "prop"); @@ -874,10 +876,10 @@ return result; } =20 -void dav_get_liveprop_supported(dav_propdb *propdb, - const char *ns_uri, - const char *propname, - apr_text_header *body) +DAV_DECLARE(void) dav_get_liveprop_supported(dav_propdb *propdb, + const char *ns_uri, + const char *propname, + apr_text_header *body) { int propid; const dav_hooks_liveprop *hooks; @@ -898,7 +900,7 @@ } } =20 -void dav_prop_validate(dav_prop_ctx *ctx) +DAV_DECLARE_NONSTD(void) dav_prop_validate(dav_prop_ctx *ctx) { dav_propdb *propdb =3D ctx->propdb; apr_xml_elem *prop =3D ctx->prop; @@ -989,7 +991,7 @@ } } =20 -void dav_prop_exec(dav_prop_ctx *ctx) +DAV_DECLARE_NONSTD(void) dav_prop_exec(dav_prop_ctx *ctx) { dav_propdb *propdb =3D ctx->propdb; dav_error *err =3D NULL; @@ -1055,7 +1057,7 @@ } } =20 -void dav_prop_commit(dav_prop_ctx *ctx) +DAV_DECLARE_NONSTD(void) dav_prop_commit(dav_prop_ctx *ctx) { dav_elem_private *priv =3D ctx->prop->priv; =20 @@ -1072,7 +1074,7 @@ } } =20 -void dav_prop_rollback(dav_prop_ctx *ctx) +DAV_DECLARE_NONSTD(void) dav_prop_rollback(dav_prop_ctx *ctx) { dav_error *err =3D NULL; dav_elem_private *priv =3D ctx->prop->priv; Modified: httpd/httpd/branches/2.0.x/modules/dav/main/providers.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/providers.c?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/providers.c (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/providers.c Tue Apr 5 08:5= 1:42 2005 @@ -27,7 +27,7 @@ ap_register_provider(p, DAV_PROVIDER_GROUP, name, "0", provider); } =20 -const dav_provider * dav_lookup_provider(const char *name) +DAV_DECLARE(const dav_provider *) dav_lookup_provider(const char *name) { return ap_lookup_provider(DAV_PROVIDER_GROUP, name, "0"); } Modified: httpd/httpd/branches/2.0.x/modules/dav/main/std_liveprop.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/std_liveprop.c?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/std_liveprop.c (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/std_liveprop.c Tue Apr 5 0= 8:51:42 2005 @@ -169,22 +169,25 @@ NULL, /* patch_rollback */ }; =20 -int dav_core_find_liveprop(const dav_resource *resource, - const char *ns_uri, const char *name, - const dav_hooks_liveprop **hooks) +DAV_DECLARE_NONSTD(int) dav_core_find_liveprop( + const dav_resource *resource, + const char *ns_uri, const char *name, + const dav_hooks_liveprop **hooks) { return dav_do_find_liveprop(ns_uri, name, &dav_core_liveprop_group, ho= oks); } =20 -void dav_core_insert_all_liveprops(request_rec *r, - const dav_resource *resource, - dav_prop_insert what, apr_text_header *= phdr) +DAV_DECLARE_NONSTD(void) dav_core_insert_all_liveprops( + request_rec *r, + const dav_resource *resource, + dav_prop_insert what, + apr_text_header *phdr) { (void) dav_core_insert_prop(resource, DAV_PROPID_resourcetype, what, phdr); } =20 -void dav_core_register_uris(apr_pool_t *p) +DAV_DECLARE_NONSTD(void) dav_core_register_uris(apr_pool_t *p) { /* register the namespace URIs */ dav_register_liveprop_group(p, &dav_core_liveprop_group); Modified: httpd/httpd/branches/2.0.x/modules/dav/main/util.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/util.c?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/util.c (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/util.c Tue Apr 5 08:51:42 = 2005 @@ -159,8 +159,9 @@ ** If NULL is returned, then an error occurred with parsing the URI or ** the URI does not match the current server. */ -dav_lookup_result dav_lookup_uri(const char *uri, request_rec * r, - int must_be_absolute) +DAV_DECLARE(dav_lookup_result) dav_lookup_uri(const char *uri, + request_rec * r, + int must_be_absolute) { dav_lookup_result result =3D { 0 }; const char *scheme; @@ -287,7 +288,8 @@ */ =20 /* validate that the root element uses a given DAV: tagname (TRUE=3D=3Dval= id) */ -int dav_validate_root(const apr_xml_doc *doc, const char *tagname) +DAV_DECLARE(int) dav_validate_root(const apr_xml_doc *doc, + const char *tagname) { return doc->root && doc->root->ns =3D=3D APR_XML_NS_DAV_ID && @@ -295,7 +297,8 @@ } =20 /* find and return the (unique) child with a given DAV: tagname */ -apr_xml_elem *dav_find_child(const apr_xml_elem *elem, const char *tagname) +DAV_DECLARE(apr_xml_elem *) dav_find_child(const apr_xml_elem *elem,=20 + const char *tagname) { apr_xml_elem *child =3D elem->first_child; =20 @@ -461,7 +464,7 @@ * Seconds-xxx and Infinity time values. We assume that they do. * In addition, for now, that's all we understand, too. */ -time_t dav_get_timeout(request_rec *r) +DAV_DECLARE(time_t) dav_get_timeout(request_rec *r) { time_t now, expires =3D DAV_TIMEOUT_INFINITE; =20 @@ -1381,10 +1384,13 @@ ** On error, return appropriate HTTP_* code, and log error. If a multi-stat ** error is necessary, response will point to it, else NULL. */ -dav_error * dav_validate_request(request_rec *r, dav_resource *resource, - int depth, dav_locktoken *locktoken, - dav_response **response, int flags, - dav_lockdb *lockdb) +DAV_DECLARE(dav_error *) dav_validate_request(request_rec *r,=20 + dav_resource *resource, + int depth, + dav_locktoken *locktoken, + dav_response **response, + int flags, + dav_lockdb *lockdb) { dav_error *err; int result; @@ -1602,7 +1608,8 @@ * Sets ltl to a locktoken_list of all positive locktokens in header, * else NULL if no If-header, or no positive locktokens. */ -dav_error * dav_get_locktoken_list(request_rec *r, dav_locktoken_list **lt= l)=20 +DAV_DECLARE(dav_error *) dav_get_locktoken_list(request_rec *r, + dav_locktoken_list **ltl)=20 { dav_error *err; dav_if_header *if_header; @@ -1672,9 +1679,9 @@ * If there were any headers in the request which require a Vary header * in the response, add it. */ -void dav_add_vary_header(request_rec *in_req, - request_rec *out_req, - const dav_resource *resource) +DAV_DECLARE(void) dav_add_vary_header(request_rec *in_req, + request_rec *out_req, + const dav_resource *resource) { const dav_hooks_vsn *vsn_hooks =3D DAV_GET_HOOKS_VSN(in_req); =20 @@ -1758,7 +1765,7 @@ } =20 /* see mod_dav.h for docco */ -dav_error *dav_auto_checkout( +DAV_DECLARE(dav_error *) dav_auto_checkout( request_rec *r, dav_resource *resource, int parent_only, @@ -1904,7 +1911,7 @@ } =20 /* see mod_dav.h for docco */ -dav_error *dav_auto_checkin( +DAV_DECLARE(dav_error *) dav_auto_checkin( request_rec *r, dav_resource *resource, int undo, Modified: httpd/httpd/branches/2.0.x/modules/dav/main/util_lock.c URL: http://svn.apache.org/viewcvs/httpd/httpd/branches/2.0.x/modules/dav/m= ain/util_lock.c?view=3Ddiff&r1=3D160187&r2=3D160188 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- httpd/httpd/branches/2.0.x/modules/dav/main/util_lock.c (original) +++ httpd/httpd/branches/2.0.x/modules/dav/main/util_lock.c Tue Apr 5 08:5= 1:42 2005 @@ -42,8 +42,9 @@ ** dav_lock_get_activelock: Returns a containing ** an activelock element for every item in the lock_discovery tree */ -const char *dav_lock_get_activelock(request_rec *r, dav_lock *lock, - dav_buffer *pbuf) +DAV_DECLARE(const char *) dav_lock_get_activelock(request_rec *r, + dav_lock *lock, + dav_buffer *pbuf) { dav_lock *lock_scan; const dav_hooks_locks *hooks =3D DAV_GET_HOOKS_LOCKS(r); @@ -159,11 +160,11 @@ ** lockinfo XML element, then populates a dav_lock structure ** with its contents. */ -dav_error * dav_lock_parse_lockinfo(request_rec *r, - const dav_resource *resource, - dav_lockdb *lockdb, - const apr_xml_doc *doc, - dav_lock **lock_request) +DAV_DECLARE(dav_error *) dav_lock_parse_lockinfo(request_rec *r, + const dav_resource *resou= rce, + dav_lockdb *lockdb, + const apr_xml_doc *doc, + dav_lock **lock_request) { apr_pool_t *p =3D r->pool; dav_error *err; @@ -285,9 +286,10 @@ ** all children, bounded by depth. ** ### assume request only contains one lock */ -dav_error * dav_add_lock(request_rec *r, const dav_resource *resource, - dav_lockdb *lockdb, dav_lock *lock, - dav_response **response) +DAV_DECLARE(dav_error *) dav_add_lock(request_rec *r, + const dav_resource *resource, + dav_lockdb *lockdb, dav_lock *lock, + dav_response **response) { dav_error *err; int depth =3D lock->depth; @@ -485,8 +487,8 @@ ** ### We've already crawled the tree to ensure everything was locked ** by us; there should be no need to incorporate a rollback. */ -int dav_unlock(request_rec *r, const dav_resource *resource, - const dav_locktoken *locktoken) +DAV_DECLARE(int) dav_unlock(request_rec *r, const dav_resource *resource, + const dav_locktoken *locktoken) { int result; dav_lockdb *lockdb; @@ -674,7 +676,8 @@ ** ** Returns DAV_RESOURCE_ERROR if an error occurs. */ -int dav_get_resource_state(request_rec *r, const dav_resource *resource) +DAV_DECLARE(int) dav_get_resource_state(request_rec *r, + const dav_resource *resource) { const dav_hooks_locks *hooks =3D DAV_GET_HOOKS_LOCKS(r); =20 @@ -732,11 +735,11 @@ return DAV_RESOURCE_NULL; } =20 -dav_error * dav_notify_created(request_rec *r, - dav_lockdb *lockdb, - const dav_resource *resource, - int resource_state, - int depth) +DAV_DECLARE(dav_error *) dav_notify_created(request_rec *r, + dav_lockdb *lockdb, + const dav_resource *resource, + int resource_state, + int depth) { dav_error *err; =20