Lines Matching refs:ip

443     dav_lock_indirect *ip = indirect;
461 if (dp == NULL && ip == NULL) {
472 while(ip) {
473 val.dsize += dav_size_indirect(ip);
474 ip = ip->next;
481 ip = indirect;
508 while(ip) {
512 memcpy(ptr, ip->locktoken, sizeof(*ip->locktoken));
513 ptr += sizeof(*ip->locktoken);
515 memcpy(ptr, &ip->timeout, sizeof(ip->timeout));
516 ptr += sizeof(ip->timeout);
518 memcpy(ptr, &ip->key.dsize, sizeof(ip->key.dsize));
519 ptr += sizeof(ip->key.dsize);
521 memcpy(ptr, ip->key.dptr, ip->key.dsize);
522 ptr += ip->key.dsize;
524 ip = ip->next;
564 dav_lock_indirect *ip;
638 ip = apr_pcalloc(p, sizeof(*ip));
639 ip->locktoken = apr_pmemdup(p, val.dptr + offset, sizeof(*ip->locktoken));
640 offset += sizeof(*ip->locktoken);
641 memcpy(&ip->timeout, val.dptr + offset, sizeof(ip->timeout));
642 offset += sizeof(ip->timeout);
644 ip->key.dsize = *((int *) (val.dptr + offset));
645 offset += sizeof(ip->key.dsize);
646 ip->key.dptr = apr_pmemdup(p, val.dptr + offset, ip->key.dsize);
647 offset += ip->key.dsize;
649 if (!dav_generic_lock_expired(ip->timeout)) {
650 ip->next = *indirect;
651 *indirect = ip;
794 dav_lock_indirect *ip;
807 &dp, &ip)) != NULL) {
829 for (; ip != NULL; ip = ip->next) {
830 newlock = dav_generic_alloc_lock(lockdb, ip->key, ip->locktoken);
834 err = dav_generic_resolve(lockdb, ip, &dp, NULL, NULL);
870 dav_lock_indirect *ip;
876 &dp, &ip)) != NULL) {
895 for (; ip != NULL; ip = ip->next) {
896 if (!dav_compare_locktoken(locktoken, ip->locktoken)) {
897 *lock = dav_generic_alloc_lock(lockdb, ip->key, locktoken);
906 if ((err = dav_generic_resolve(lockdb, ip, &dp,
960 dav_lock_indirect *ip;
966 err = dav_generic_load_lock_record(lockdb, key, 0, &dp, &ip);
987 newi->next = ip;
988 ip = newi;
1017 newi->next = ip;
1018 ip = newi;
1023 if ((err = dav_generic_save_lock_record(lockdb, key, dp, ip)) != NULL) {
1045 dav_lock_indirect *ip;
1064 for (ip = ih; ip != NULL; ip = ip->next) {
1065 if (dav_compare_locktoken(locktoken, ip->locktoken) == 0) {
1067 iprev->next = ip->next;
1071 iprev = ip;
1113 dav_lock_indirect *ip;
1121 &dp, &ip)) != NULL) {
1150 && (err = dav_generic_save_lock_record(lockdb, key, dp, ip)) != NULL) {
1156 for (; ip != NULL; ip = ip->next) {
1160 if ((err = dav_generic_resolve(lockdb, ip, &dp_scan,
1167 newlock = dav_generic_alloc_lock(lockdb, ip->key, dp->locktoken);
1180 if ((err = dav_generic_save_lock_record(lockdb, ip->key, ref_dp,