Lines Matching refs:dp
442 dav_lock_discovery *dp = direct;
461 if (dp == NULL && ip == NULL) {
468 while(dp) {
469 val.dsize += dav_size_direct(dp);
470 dp = dp->next;
480 dp = direct;
483 while(dp) {
486 memcpy(ptr, dp, sizeof(dp->f)); /* Fixed portion of struct */
487 ptr += sizeof(dp->f);
488 memcpy(ptr, dp->locktoken, sizeof(*dp->locktoken));
489 ptr += sizeof(*dp->locktoken);
490 if (dp->owner == NULL) {
494 memcpy(ptr, dp->owner, strlen(dp->owner) + 1);
495 ptr += strlen(dp->owner) + 1;
497 if (dp->auth_user == NULL) {
501 memcpy(ptr, dp->auth_user, strlen(dp->auth_user) + 1);
502 ptr += strlen(dp->auth_user) + 1;
505 dp = dp->next;
563 dav_lock_discovery *dp;
597 dp = apr_pcalloc(p, sizeof(*dp));
600 memcpy(dp, val.dptr + offset, sizeof(dp->f));
601 offset += sizeof(dp->f);
604 dp->locktoken = apr_pmemdup(p, val.dptr + offset, sizeof(*dp->locktoken));
605 offset += sizeof(*dp->locktoken);
613 dp->owner = apr_pstrmemdup(p, val.dptr + offset, len);
622 dp->auth_user = apr_pstrmemdup(p, val.dptr + offset, len);
626 if (!dav_generic_lock_expired(dp->f.timeout)) {
627 dp->next = *direct;
628 *direct = dp;
793 dav_lock_discovery *dp;
807 &dp, &ip)) != NULL) {
813 for (; dp != NULL; dp = dp->next) {
814 newlock = dav_generic_alloc_lock(lockdb, key, dp->locktoken);
816 newlock->scope = dp->f.scope;
817 newlock->type = dp->f.type;
818 newlock->depth = dp->f.depth;
819 newlock->timeout = dp->f.timeout;
820 newlock->owner = dp->owner;
821 newlock->auth_user = dp->auth_user;
834 err = dav_generic_resolve(lockdb, ip, &dp, NULL, NULL);
840 newlock->scope = dp->f.scope;
841 newlock->type = dp->f.type;
842 newlock->depth = dp->f.depth;
843 newlock->timeout = dp->f.timeout;
844 newlock->owner = dp->owner;
845 newlock->auth_user = dp->auth_user;
869 dav_lock_discovery *dp;
876 &dp, &ip)) != NULL) {
881 for (; dp != NULL; dp = dp->next) {
882 if (!dav_compare_locktoken(locktoken, dp->locktoken)) {
885 (*lock)->scope = dp->f.scope;
886 (*lock)->type = dp->f.type;
887 (*lock)->depth = dp->f.depth;
888 (*lock)->timeout = dp->f.timeout;
889 (*lock)->owner = dp->owner;
890 (*lock)->auth_user = dp->auth_user;
906 if ((err = dav_generic_resolve(lockdb, ip, &dp,
911 (*lock)->scope = dp->f.scope;
912 (*lock)->type = dp->f.type;
913 (*lock)->depth = dp->f.depth;
914 (*lock)->timeout = dp->f.timeout;
915 (*lock)->owner = dp->owner;
916 (*lock)->auth_user = dp->auth_user;
961 dav_lock_discovery *dp;
966 err = dav_generic_load_lock_record(lockdb, key, 0, &dp, &ip);
1006 newd->next = dp;
1007 dp = newd;
1023 if ((err = dav_generic_save_lock_record(lockdb, key, dp, ip)) != NULL) {
1043 dav_lock_discovery *dp;
1054 for (dp = dh; dp != NULL; dp = dp->next) {
1055 if (dav_compare_locktoken(locktoken, dp->locktoken) == 0) {
1057 dprev->next = dp->next;
1061 dprev = dp;
1085 static int dav_generic_do_refresh(dav_lock_discovery *dp,
1092 if (dav_compare_locktoken(dp->locktoken, ltl->locktoken) == 0)
1094 dp->f.timeout = new_time;
1111 dav_lock_discovery *dp;
1121 &dp, &ip)) != NULL) {
1129 for (dp_scan = dp; dp_scan != NULL; dp_scan = dp_scan->next) {
1150 && (err = dav_generic_save_lock_record(lockdb, key, dp, ip)) != NULL) {
1167 newlock = dav_generic_alloc_lock(lockdb, ip->key, dp->locktoken);
1169 newlock->scope = dp->f.scope;
1170 newlock->type = dp->f.type;
1171 newlock->depth = dp->f.depth;
1172 newlock->timeout = dp->f.timeout;
1173 newlock->owner = dp->owner;