Lines Matching refs:dp

421     dav_lock_discovery *dp = direct;
440 if (dp == NULL && ip == NULL) {
447 while(dp) {
448 val.dsize += dav_size_direct(dp);
449 dp = dp->next;
459 dp = direct;
462 while(dp) {
464 memcpy(ptr, dp, sizeof(dp->f)); /* Fixed portion of struct */
465 ptr += sizeof(dp->f);
466 memcpy(ptr, dp->locktoken, sizeof(*dp->locktoken));
467 ptr += sizeof(*dp->locktoken);
468 if (dp->owner == NULL) {
472 memcpy(ptr, dp->owner, strlen(dp->owner) + 1);
473 ptr += strlen(dp->owner) + 1;
475 if (dp->auth_user == NULL) {
479 memcpy(ptr, dp->auth_user, strlen(dp->auth_user) + 1);
480 ptr += strlen(dp->auth_user) + 1;
483 dp = dp->next;
531 dav_lock_discovery *dp;
563 dp = apr_pcalloc(p, sizeof(*dp));
564 memcpy(dp, val.dptr + offset, sizeof(dp->f));
565 offset += sizeof(dp->f);
566 dp->locktoken = apr_pmemdup(p, val.dptr + offset, sizeof(*dp->locktoken));
567 offset += sizeof(*dp->locktoken);
572 dp->owner = apr_pstrdup(p, val.dptr + offset);
573 offset += strlen(dp->owner) + 1;
580 dp->auth_user = apr_pstrdup(p, val.dptr + offset);
581 offset += strlen(dp->auth_user) + 1;
584 if (!dav_fs_lock_expired(dp->f.timeout)) {
585 dp->next = *direct;
586 *direct = dp;
1001 dav_lock_discovery *dp;
1015 &dp, &ip)) != NULL) {
1021 for (; dp != NULL; dp = dp->next) {
1022 newlock = dav_fs_alloc_lock(lockdb, key, dp->locktoken);
1024 newlock->scope = dp->f.scope;
1025 newlock->type = dp->f.type;
1026 newlock->depth = dp->f.depth;
1027 newlock->timeout = dp->f.timeout;
1028 newlock->owner = dp->owner;
1029 newlock->auth_user = dp->auth_user;
1042 if ((err = dav_fs_resolve(lockdb, ip, &dp, NULL, NULL)) != NULL) {
1047 newlock->scope = dp->f.scope;
1048 newlock->type = dp->f.type;
1049 newlock->depth = dp->f.depth;
1050 newlock->timeout = dp->f.timeout;
1051 newlock->owner = dp->owner;
1052 newlock->auth_user = dp->auth_user;
1076 dav_lock_discovery *dp;
1083 &dp, &ip)) != NULL) {
1088 for (; dp != NULL; dp = dp->next) {
1089 if (!dav_compare_locktoken(locktoken, dp->locktoken)) {
1092 (*lock)->scope = dp->f.scope;
1093 (*lock)->type = dp->f.type;
1094 (*lock)->depth = dp->f.depth;
1095 (*lock)->timeout = dp->f.timeout;
1096 (*lock)->owner = dp->owner;
1097 (*lock)->auth_user = dp->auth_user;
1113 if ((err = dav_fs_resolve(lockdb, ip, &dp,
1118 (*lock)->scope = dp->f.scope;
1119 (*lock)->type = dp->f.type;
1120 (*lock)->depth = dp->f.depth;
1121 (*lock)->timeout = dp->f.timeout;
1122 (*lock)->owner = dp->owner;
1123 (*lock)->auth_user = dp->auth_user;
1168 dav_lock_discovery *dp;
1172 if ((err = dav_fs_load_lock_record(lockdb, key, 0, &dp, &ip)) != NULL) {
1211 newd->next = dp;
1212 dp = newd;
1228 if ((err = dav_fs_save_lock_record(lockdb, key, dp, ip)) != NULL) {
1257 dav_lock_discovery *dp;
1268 for (dp = dh; dp != NULL; dp = dp->next) {
1269 if (dav_compare_locktoken(locktoken, dp->locktoken) == 0) {
1271 dprev->next = dp->next;
1275 dprev = dp;
1317 static int dav_fs_do_refresh(dav_lock_discovery *dp,
1324 if (dav_compare_locktoken(dp->locktoken, ltl->locktoken) == 0)
1326 dp->f.timeout = new_time;
1343 dav_lock_discovery *dp;
1353 &dp, &ip)) != NULL) {
1361 for (dp_scan = dp; dp_scan != NULL; dp_scan = dp_scan->next) {
1382 && (err = dav_fs_save_lock_record(lockdb, key, dp, ip)) != NULL) {