File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 1+ *) mod_dav: Add API to expose DavBasePath setting. [Joe Orton]
2+
Original file line number Diff line number Diff line change 608608 * 20120211.136 (2.4.63-dev) Add wait_io field to struct process_score
609609 * 20120211.137 (2.4.63-dev) Add AP_MPMQ_CAN_WAITIO
610610 * 20120211.138 (2.4.63-dev) Add is_host_matchable to proxy_worker_shared
611+ * 20120211.139 (2.4.63-dev) Add dav_get_base_path() to mod_dav
611612 */
612613
613614#define MODULE_MAGIC_COOKIE 0x41503234UL /* "AP24" */
614615
615616#ifndef MODULE_MAGIC_NUMBER_MAJOR
616617#define MODULE_MAGIC_NUMBER_MAJOR 20120211
617618#endif
618- #define MODULE_MAGIC_NUMBER_MINOR 138 /* 0...n */
619+ #define MODULE_MAGIC_NUMBER_MINOR 139 /* 0...n */
619620
620621/**
621622 * Determine if the server's current MODULE_MAGIC_NUMBER is at least a
Original file line number Diff line number Diff line change @@ -250,6 +250,13 @@ DAV_DECLARE(const dav_hooks_search *) dav_get_search_hooks(request_rec *r)
250250 return dav_get_provider (r )-> search ;
251251}
252252
253+ DAV_DECLARE (const char * ) dav_get_base_path (request_rec * r )
254+ {
255+ dav_dir_conf * conf = ap_get_module_config (r -> per_dir_config , & dav_module );
256+
257+ return conf && conf -> base ? conf -> base : NULL ;
258+ }
259+
253260/*
254261 * Command handler for the DAV directive, which is TAKE1.
255262 */
Original file line number Diff line number Diff line change @@ -430,6 +430,11 @@ typedef struct dav_locktoken dav_locktoken;
430430DAV_DECLARE (dav_error * ) dav_get_resource (request_rec * r , int label_allowed ,
431431 int use_checked_in , dav_resource * * res_p );
432432
433+ /*
434+ ** If DavBasePath is configured for the request location, return the
435+ ** configured path, otherwise NULL.
436+ */
437+ DAV_DECLARE (const char * ) dav_get_base_path (request_rec * r );
433438
434439/* --------------------------------------------------------------------
435440**
You can’t perform that action at this time.
0 commit comments