Lines Matching refs:pconf

461 static void mod_webdav_merge_config_cpv(plugin_config * const pconf, const config_plugin_value_t * …  in mod_webdav_merge_config_cpv()  argument
465 pconf->sql = cpv->v.v; in mod_webdav_merge_config_cpv()
468 pconf->enabled = (unsigned short)cpv->v.u; in mod_webdav_merge_config_cpv()
471 pconf->is_readonly = (unsigned short)cpv->v.u; in mod_webdav_merge_config_cpv()
474 pconf->log_xml = (unsigned short)cpv->v.u; in mod_webdav_merge_config_cpv()
478 pconf->opts = (unsigned short)cpv->v.u; in mod_webdav_merge_config_cpv()
486 static void mod_webdav_merge_config(plugin_config * const pconf, const config_plugin_value_t *cpv) { in mod_webdav_merge_config() argument
488 mod_webdav_merge_config_cpv(pconf, cpv); in mod_webdav_merge_config()
493 …mod_webdav_patch_config(request_st * const r, plugin_data * const p, plugin_config * const pconf) { in mod_webdav_patch_config() argument
494 memcpy(pconf, &p->defaults, sizeof(plugin_config)); in mod_webdav_patch_config()
497 mod_webdav_merge_config(pconf, p->cvlist + p->cvlist[i].v.u2[0]); in mod_webdav_patch_config()
623 plugin_config pconf; in URIHANDLER_FUNC() local
624 mod_webdav_patch_config(r, (plugin_data *)p_d, &pconf); in URIHANDLER_FUNC()
625 if (!pconf.enabled) return HANDLER_GO_ON; in URIHANDLER_FUNC()
629 if (pconf.sql) in URIHANDLER_FUNC()
646 if (pconf.is_readonly) in URIHANDLER_FUNC()
651 else if (pconf.sql) in URIHANDLER_FUNC()
1017 const plugin_config * const pconf) in webdav_xml_doc_multistatus() argument
1031 if (pconf->log_xml) in webdav_xml_doc_multistatus()
1039 const plugin_config * const pconf, in webdav_xml_doc_multistatus_response() argument
1057 if (pconf->log_xml) in webdav_xml_doc_multistatus_response()
1066 const plugin_config * const pconf, in webdav_xml_doc_lock_acquired() argument
1093 if (pconf->log_xml) in webdav_xml_doc_lock_acquired()
1492 webdav_db_transaction (const plugin_config * const pconf, in webdav_db_transaction() argument
1495 if (!pconf->sql) in webdav_db_transaction()
1498 if (SQLITE_OK == sqlite3_exec(pconf->sql->sqlh, action, NULL, NULL, &err)) in webdav_db_transaction()
1503 log_error(pconf->errh, __FILE__, __LINE__, in webdav_db_transaction()
1511 #define webdav_db_transaction_begin(pconf) \ argument
1512 webdav_db_transaction(pconf, "BEGIN;")
1514 #define webdav_db_transaction_begin_immediate(pconf) \ argument
1515 webdav_db_transaction(pconf, "BEGIN IMMEDIATE;")
1517 #define webdav_db_transaction_commit(pconf) \ argument
1518 webdav_db_transaction(pconf, "COMMIT;")
1520 #define webdav_db_transaction_rollback(pconf) \ argument
1521 webdav_db_transaction(pconf, "ROLLBACK;")
1525 #define webdav_db_transaction_begin(pconf) 1 argument
1526 #define webdav_db_transaction_begin_immediate(pconf) 1 argument
1527 #define webdav_db_transaction_commit(pconf) 1 argument
1528 #define webdav_db_transaction_rollback(pconf) 1 argument
1535 webdav_lock_match (const plugin_config * const pconf, in webdav_lock_match() argument
1538 if (!pconf->sql) in webdav_lock_match()
1540 sqlite3_stmt * const stmt = pconf->sql->stmt_locks_read; in webdav_lock_match()
1615 webdav_lock_activelocks (const plugin_config * const pconf, in webdav_lock_activelocks() argument
1628 if (!pconf->sql) in webdav_lock_activelocks()
1632 sqlite3_stmt *stmt = pconf->sql->stmt_locks_read_uri; in webdav_lock_activelocks()
1633 if (!stmt || !pconf->sql->stmt_locks_read_uri_infinity in webdav_lock_activelocks()
1634 || !pconf->sql->stmt_locks_read_uri_members) in webdav_lock_activelocks()
1657 stmt = pconf->sql->stmt_locks_read_uri_infinity; in webdav_lock_activelocks()
1677 stmt = pconf->sql->stmt_locks_read_uri_members; in webdav_lock_activelocks()
1698 webdav_lock_delete_uri (const plugin_config * const pconf, in webdav_lock_delete_uri() argument
1703 if (!pconf->sql) in webdav_lock_delete_uri()
1705 sqlite3_stmt * const stmt = pconf->sql->stmt_locks_delete_uri; in webdav_lock_delete_uri()
1715 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_delete_uri()
1716 log_error(pconf->errh, __FILE__, __LINE__, in webdav_lock_delete_uri()
1717 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_delete_uri()
1726 UNUSED(pconf); in webdav_lock_delete_uri()
1734 webdav_lock_delete_uri_col (const plugin_config * const pconf, in webdav_lock_delete_uri_col() argument
1739 if (!pconf->sql) in webdav_lock_delete_uri_col()
1741 sqlite3_stmt * const stmt = pconf->sql->stmt_locks_delete_uri_col; in webdav_lock_delete_uri_col()
1756 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_delete_uri_col()
1757 log_error(pconf->errh, __FILE__, __LINE__, in webdav_lock_delete_uri_col()
1758 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_delete_uri_col()
1767 UNUSED(pconf); in webdav_lock_delete_uri_col()
1776 webdav_lock_acquire (const plugin_config * const pconf, in webdav_lock_acquire() argument
1786 if (!pconf->sql) in webdav_lock_acquire()
1788 sqlite3_stmt * const stmt = pconf->sql->stmt_locks_acquire; in webdav_lock_acquire()
1821 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_acquire()
1822 log_error(pconf->errh, __FILE__, __LINE__, in webdav_lock_acquire()
1823 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_acquire()
1836 webdav_lock_refresh (const plugin_config * const pconf, in webdav_lock_refresh() argument
1839 if (!pconf->sql) in webdav_lock_refresh()
1841 sqlite3_stmt * const stmt = pconf->sql->stmt_locks_refresh; in webdav_lock_refresh()
1853 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_refresh()
1854 log_error(pconf->errh, __FILE__, __LINE__, in webdav_lock_refresh()
1855 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_refresh()
1870 webdav_lock_release (const plugin_config * const pconf, in webdav_lock_release() argument
1873 if (!pconf->sql) in webdav_lock_release()
1875 sqlite3_stmt * const stmt = pconf->sql->stmt_locks_release; in webdav_lock_release()
1884 status = (0 != sqlite3_changes(pconf->sql->sqlh)); in webdav_lock_release()
1887 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_release()
1888 log_error(pconf->errh, __FILE__, __LINE__, in webdav_lock_release()
1889 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_lock_release()
1901 webdav_prop_move_uri (const plugin_config * const pconf, in webdav_prop_move_uri() argument
1906 if (!pconf->sql) in webdav_prop_move_uri()
1908 sqlite3_stmt * const stmt = pconf->sql->stmt_props_move; in webdav_prop_move_uri()
1917 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_move_uri()
1918 log_error(pconf->errh, __FILE__, __LINE__, in webdav_prop_move_uri()
1919 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_move_uri()
1926 UNUSED(pconf); in webdav_prop_move_uri()
1936 webdav_prop_move_uri_col (const plugin_config * const pconf, in webdav_prop_move_uri_col() argument
1941 if (!pconf->sql) in webdav_prop_move_uri_col()
1943 sqlite3_stmt * const stmt = pconf->sql->stmt_props_move_col; in webdav_prop_move_uri_col()
1958 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_move_uri_col()
1959 log_error(pconf->errh, __FILE__, __LINE__, in webdav_prop_move_uri_col()
1960 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_move_uri_col()
1967 UNUSED(pconf); in webdav_prop_move_uri_col()
1977 webdav_prop_delete_uri (const plugin_config * const pconf, in webdav_prop_delete_uri() argument
1981 if (!pconf->sql) in webdav_prop_delete_uri()
1983 sqlite3_stmt * const stmt = pconf->sql->stmt_props_delete; in webdav_prop_delete_uri()
1991 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_delete_uri()
1992 log_error(pconf->errh, __FILE__, __LINE__, in webdav_prop_delete_uri()
1993 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_delete_uri()
2000 UNUSED(pconf); in webdav_prop_delete_uri()
2009 webdav_prop_copy_uri (const plugin_config * const pconf, in webdav_prop_copy_uri() argument
2014 if (!pconf->sql) in webdav_prop_copy_uri()
2016 sqlite3_stmt * const stmt = pconf->sql->stmt_props_copy; in webdav_prop_copy_uri()
2025 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_copy_uri()
2026 log_error(pconf->errh, __FILE__, __LINE__, in webdav_prop_copy_uri()
2027 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_copy_uri()
2034 UNUSED(pconf); in webdav_prop_copy_uri()
2045 webdav_prop_delete (const plugin_config * const pconf, in webdav_prop_delete() argument
2050 if (!pconf->sql) in webdav_prop_delete()
2052 sqlite3_stmt * const stmt = pconf->sql->stmt_props_delete_prop; in webdav_prop_delete()
2062 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_delete()
2063 log_error(pconf->errh, __FILE__, __LINE__, in webdav_prop_delete()
2064 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_delete()
2077 webdav_prop_update (const plugin_config * const pconf, in webdav_prop_update() argument
2083 if (!pconf->sql) in webdav_prop_update()
2085 sqlite3_stmt * const stmt = pconf->sql->stmt_props_update_prop; in webdav_prop_update()
2096 fprintf(stderr, "%s: %s\n", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_update()
2097 log_error(pconf->errh, __FILE__, __LINE__, in webdav_prop_update()
2098 "%s: %s", __func__, sqlite3_errmsg(pconf->sql->sqlh)); in webdav_prop_update()
2110 webdav_prop_select_prop (const plugin_config * const pconf, in webdav_prop_select_prop() argument
2116 if (!pconf->sql) in webdav_prop_select_prop()
2118 sqlite3_stmt * const stmt = pconf->sql->stmt_props_select_prop; in webdav_prop_select_prop()
2134 UNUSED(pconf); in webdav_prop_select_prop()
2144 webdav_prop_select_props (const plugin_config * const pconf, in webdav_prop_select_props() argument
2149 if (!pconf->sql) in webdav_prop_select_props()
2151 sqlite3_stmt * const stmt = pconf->sql->stmt_props_select_props; in webdav_prop_select_props()
2169 UNUSED(pconf); in webdav_prop_select_props()
2177 webdav_prop_select_propnames (const plugin_config * const pconf, in webdav_prop_select_propnames() argument
2182 if (!pconf->sql) in webdav_prop_select_propnames()
2184 sqlite3_stmt * const stmt = pconf->sql->stmt_props_select_propnames; in webdav_prop_select_propnames()
2203 UNUSED(pconf); in webdav_prop_select_propnames()
2459 #define webdav_unlinkat(pconf,dst,dfd,d_name) webdav_delete_file((pconf),(dst)) argument
2462 webdav_unlinkat (const plugin_config * const pconf, in webdav_unlinkat() argument
2468 return webdav_prop_delete_uri(pconf, &dst->rel_path); in webdav_unlinkat()
2481 webdav_delete_file (const plugin_config * const pconf, in webdav_delete_file() argument
2486 return webdav_prop_delete_uri(pconf, &dst->rel_path); in webdav_delete_file()
2498 webdav_delete_dir (const plugin_config * const pconf, in webdav_delete_dir() argument
2569 multi_status |= webdav_delete_dir(pconf, dst, r, flags); in webdav_delete_dir()
2573 webdav_unlinkat(pconf, dst, dfd, de->d_name); in webdav_delete_dir()
2588 rmdir_status = webdav_prop_delete_uri(pconf, &dst->rel_path); in webdav_delete_dir()
2608 #define webdav_linktmp_rename(pconf, src, dst) -1 argument
2611 webdav_linktmp_rename (const plugin_config * const pconf, in webdav_linktmp_rename() argument
2615 buffer * const tmpb = pconf->tmpb; in webdav_linktmp_rename()
2623 buffer_append_uint_hex_lc(tmpb, (uintptr_t)pconf); /*(stack/heap addr)*/ in webdav_linktmp_rename()
2648 webdav_copytmp_rename (const plugin_config * const pconf, in webdav_copytmp_rename() argument
2684 buffer * const tmpb = pconf->tmpb; in webdav_copytmp_rename()
2690 buffer_append_uint_hex_lc(tmpb, (uintptr_t)pconf); /*(stack/heap addr)*/ in webdav_copytmp_rename()
2911 webdav_copymove_file (const plugin_config * const pconf, in webdav_copymove_file() argument
2948 webdav_prop_move_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2956 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2962 if (0 == webdav_linktmp_rename(pconf, &src->path, &dst->path)) { in webdav_copymove_file()
2963 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2974 int status = webdav_copytmp_rename(pconf, src, dst, flags); in webdav_copymove_file()
2976 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_file()
2978 webdav_delete_file(pconf, src); in webdav_copymove_file()
2986 webdav_mkdir (const plugin_config * const pconf, in webdav_mkdir() argument
3033 status = webdav_delete_file(pconf, dst); in webdav_mkdir()
3047 webdav_copymove_dir (const plugin_config * const pconf, in webdav_copymove_dir() argument
3119 webdav_prop_move_uri_col(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_dir()
3159 status = webdav_delete_file(pconf, dst); in webdav_copymove_dir()
3168 webdav_prop_move_uri_col(pconf, &src->rel_path, in webdav_copymove_dir()
3193 if (0 != (status = webdav_mkdir(pconf, dst, overwrite))) { in webdav_copymove_dir()
3199 webdav_prop_copy_uri(pconf, &src->rel_path, &dst->rel_path); in webdav_copymove_dir()
3274 status = webdav_copymove_dir(pconf, src, dst, r, flags); in webdav_copymove_dir()
3279 status = webdav_copymove_file(pconf, src, dst, &flags); in webdav_copymove_dir()
3309 status = webdav_delete_dir(pconf, src, r, flags); /* content */ in webdav_copymove_dir()
3323 const plugin_config * restrict pconf; member
3598 : 0 == webdav_prop_select_prop(pb->pconf, &pb->dst->rel_path, in webdav_propfind_resource_props()
3622 webdav_prop_select_props(pb->pconf, &pb->dst->rel_path, pb->b_200); in webdav_propfind_resource_props()
3642 webdav_lock_activelocks(pb->pconf, &pb->dst->rel_path, in webdav_propfind_resource_props()
3671 webdav_prop_select_propnames(pb->pconf, &pb->dst->rel_path, pb->b_200); in webdav_propfind_resource_propnames()
3837 const plugin_config * const pconf) in webdav_parse_chunkqueue() argument
3888 if (pconf->log_xml) in webdav_parse_chunkqueue()
3997 const plugin_config * const pconf, in webdav_has_lock() argument
4129 webdav_lock_activelocks(pconf, uri, 1, in webdav_has_lock()
4171 #define webdav_has_lock(r, pconf, uri) 1 argument
4177 mod_webdav_propfind (request_st * const r, const plugin_config * const pconf) in mod_webdav_propfind() argument
4220 if (-1 == pb.depth && !(pconf->opts & MOD_WEBDAV_PROPFIND_DEPTH_INFINITY)) { in mod_webdav_propfind()
4226 ((pconf->opts & MOD_WEBDAV_UNSAFE_PROPFIND_FOLLOW_SYMLINK) in mod_webdav_propfind()
4227 && pconf->is_readonly) in mod_webdav_propfind()
4261 if (NULL == (xml = webdav_parse_chunkqueue(r, pconf))) { in mod_webdav_propfind()
4364 pb.pconf = pconf; in mod_webdav_propfind()
4397 if (pconf->log_xml) in mod_webdav_propfind()
4405 mod_webdav_mkcol (request_st * const r, const plugin_config * const pconf) in mod_webdav_mkcol() argument
4407 const int status = webdav_mkdir(pconf, &r->physical, -1); in mod_webdav_mkcol()
4418 mod_webdav_delete (request_st * const r, const plugin_config * const pconf) in mod_webdav_delete() argument
4473 if (0 == webdav_delete_dir(pconf, &r->physical, r, flags)) { in mod_webdav_delete()
4478 webdav_lock_delete_uri_col(pconf, &r->physical.rel_path); in mod_webdav_delete()
4482 webdav_xml_doc_multistatus(r, pconf); /* 207 Multi-status */ in mod_webdav_delete()
4491 const int status = webdav_delete_file(pconf, &r->physical); in mod_webdav_delete()
4493 webdav_lock_delete_uri(pconf, &r->physical.rel_path); in mod_webdav_delete()
4557 mod_webdav_put_0 (request_st * const r, const plugin_config * const pconf) in mod_webdav_put_0() argument
4586 webdav_delete_file(pconf, &r->physical); /*(ignore result)*/ in mod_webdav_put_0()
4605 mod_webdav_put_prep (request_st * const r, const plugin_config * const pconf) in mod_webdav_put_prep() argument
4614 if (pconf->opts & (MOD_WEBDAV_UNSAFE_PARTIAL_PUT_COMPAT in mod_webdav_put_prep()
4630 return mod_webdav_put_0(r, pconf); in mod_webdav_put_prep()
4757 const plugin_config * const pconf) in mod_webdav_put_range() argument
4784 if ((pconf->opts & MOD_WEBDAV_CPYTMP_PARTIAL_PUT) in mod_webdav_put_range()
4785 && (!(pconf->opts & MOD_WEBDAV_UNSAFE_PARTIAL_PUT_COMPAT) in mod_webdav_put_range()
4794 int rc = webdav_copytmp_rename(pconf, &r->physical, &r->physical, &fd); in mod_webdav_put_range()
4804 fd = fdevent_open_cloexec(pconf->tmpb->ptr, 0, in mod_webdav_put_range()
4808 unlink(pconf->tmpb->ptr); in mod_webdav_put_range()
4853 unlink(pconf->tmpb->ptr); in mod_webdav_put_range()
4867 if (0 == rename(pconf->tmpb->ptr, r->physical.path.ptr)) in mod_webdav_put_range()
4869 if (0 == renameat2(AT_FDCWD, pconf->tmpb->ptr, in mod_webdav_put_range()
4883 unlink(pconf->tmpb->ptr); in mod_webdav_put_range()
4906 mod_webdav_put (request_st * const r, const plugin_config * const pconf) in mod_webdav_put() argument
4926 if (pconf->opts & (MOD_WEBDAV_UNSAFE_PARTIAL_PUT_COMPAT in mod_webdav_put()
4932 return mod_webdav_put_range(r, h, pconf); in mod_webdav_put()
4955 buffer * const tmpb = pconf->tmpb; in mod_webdav_put()
4962 buffer_append_uint_hex_lc(tmpb, (uintptr_t)pconf); /*(stack/heap addr)*/ in mod_webdav_put()
5038 mod_webdav_copymove_b (request_st * const r, const plugin_config * const pconf, physical_st * const… in mod_webdav_copymove_b() argument
5049 : ((pconf->opts & MOD_WEBDAV_UNSAFE_PARTIAL_PUT_COMPAT) in mod_webdav_copymove_b()
5050 && !(pconf->opts & MOD_WEBDAV_CPYTMP_PARTIAL_PUT)) in mod_webdav_copymove_b()
5242 if (!webdav_has_lock(r, pconf, dst_rel_path)) in mod_webdav_copymove_b()
5261 status = webdav_mkdir(pconf, dst, 1); in mod_webdav_copymove_b()
5268 status = webdav_mkdir(pconf, dst, in mod_webdav_copymove_b()
5276 webdav_prop_copy_uri(pconf, &r->physical.rel_path, in mod_webdav_copymove_b()
5284 if (0 == webdav_copymove_dir(pconf, &r->physical, dst, r, flags)) { in mod_webdav_copymove_b()
5286 webdav_lock_delete_uri_col(pconf, &r->physical.rel_path); in mod_webdav_copymove_b()
5297 webdav_xml_doc_multistatus(r, pconf); /* 207 Multi-status */ in mod_webdav_copymove_b()
5314 if (!webdav_has_lock(r, pconf, dst_rel_path)) in mod_webdav_copymove_b()
5383 rc = webdav_copymove_file(pconf, &r->physical, dst, &flags); in mod_webdav_copymove_b()
5386 webdav_lock_delete_uri(pconf, &r->physical.rel_path); in mod_webdav_copymove_b()
5397 mod_webdav_copymove (request_st * const r, const plugin_config * const pconf) in mod_webdav_copymove() argument
5404 handler_t rc = mod_webdav_copymove_b(r, pconf, &dst); in mod_webdav_copymove()
5415 mod_webdav_proppatch (request_st * const r, const plugin_config * const pconf) in mod_webdav_proppatch() argument
5417 if (!pconf->sql) in mod_webdav_proppatch()
5460 xmlDocPtr const xml = webdav_parse_chunkqueue(r, pconf); in mod_webdav_proppatch()
5474 if (!webdav_db_transaction_begin_immediate(pconf)) { in mod_webdav_proppatch()
5543 webdav_prop_update(pconf, &r->physical.rel_path, in mod_webdav_proppatch()
5550 webdav_prop_delete(pconf, &r->physical.rel_path, in mod_webdav_proppatch()
5557 ? webdav_db_transaction_commit(pconf) in mod_webdav_proppatch()
5558 : webdav_db_transaction_rollback(pconf)) { in mod_webdav_proppatch()
5575 webdav_xml_doc_multistatus_response(r, pconf, ms); in mod_webdav_proppatch()
5614 mod_webdav_lock (request_st * const r, const plugin_config * const pconf) in mod_webdav_lock() argument
5716 xmlDocPtr const xml = webdav_parse_chunkqueue(r, pconf); in mod_webdav_lock()
5779 webdav_lock_activelocks(pconf, &lockdata.lockroot, in mod_webdav_lock()
5879 if (webdav_lock_acquire(pconf, &lockdata)) { in mod_webdav_lock()
5884 webdav_xml_doc_lock_acquired(r, pconf, &lockdata); in mod_webdav_lock()
5915 if (webdav_lock_refresh(pconf, &lockdata)) { in mod_webdav_lock()
5916 webdav_xml_doc_lock_acquired(r, pconf, &lockdata); in mod_webdav_lock()
5930 mod_webdav_unlock (request_st * const r, const plugin_config * const pconf) in mod_webdav_unlock() argument
5958 switch (webdav_lock_match(pconf, &lockdata)) { in mod_webdav_unlock()
5960 if (webdav_lock_release(pconf, &lockdata)) { in mod_webdav_unlock()
5981 const plugin_config * const pconf = in SUBREQUEST_FUNC() local
5983 if (NULL == pconf) return HANDLER_GO_ON; /*(should not happen)*/ in SUBREQUEST_FUNC()
5987 return mod_webdav_propfind(r, pconf); in SUBREQUEST_FUNC()
5989 return mod_webdav_mkcol(r, pconf); in SUBREQUEST_FUNC()
5991 return mod_webdav_delete(r, pconf); in SUBREQUEST_FUNC()
5993 return mod_webdav_put(r, pconf); in SUBREQUEST_FUNC()
5996 return mod_webdav_copymove(r, pconf); in SUBREQUEST_FUNC()
5999 return mod_webdav_proppatch(r, pconf); in SUBREQUEST_FUNC()
6003 return mod_webdav_lock(r, pconf); in SUBREQUEST_FUNC()
6005 return mod_webdav_unlock(r, pconf); in SUBREQUEST_FUNC()
6053 plugin_config pconf; in PHYSICALPATH_FUNC() local
6054 mod_webdav_patch_config(r, (plugin_data *)p_d, &pconf); in PHYSICALPATH_FUNC()
6055 if (!pconf.enabled) return HANDLER_GO_ON; in PHYSICALPATH_FUNC()
6057 if (check_readonly && pconf.is_readonly) { in PHYSICALPATH_FUNC()
6073 if (check_lock_src && !webdav_has_lock(r, &pconf, &r->physical.rel_path)) in PHYSICALPATH_FUNC()
6079 if (mod_webdav_put_prep(r, &pconf) == HANDLER_FINISHED) in PHYSICALPATH_FUNC()
6089 r->plugin_ctx[((plugin_data *)p_d)->id] = &pconf; in PHYSICALPATH_FUNC()
6096 memcpy(ck_malloc(sizeof(pconf)), &pconf, sizeof(pconf)); in PHYSICALPATH_FUNC()