Lines Matching defs:ip

422     dav_lock_indirect *ip = indirect;
440 if (dp == NULL && ip == NULL) {
451 while(ip) {
452 val.dsize += dav_size_indirect(ip);
453 ip = ip->next;
460 ip = indirect;
486 while(ip) {
488 memcpy(ptr, ip->locktoken, sizeof(*ip->locktoken)); /* Locktoken */
489 ptr += sizeof(*ip->locktoken);
490 memcpy(ptr, &ip->timeout, sizeof(ip->timeout)); /* Expire time */
491 ptr += sizeof(ip->timeout);
492 memcpy(ptr, &ip->key.dsize, sizeof(ip->key.dsize)); /* Size of key */
493 ptr += sizeof(ip->key.dsize);
494 memcpy(ptr, ip->key.dptr, ip->key.dsize); /* Key data */
495 ptr += ip->key.dsize;
496 ip = ip->next;
532 dav_lock_indirect *ip;
612 ip = apr_pcalloc(p, sizeof(*ip));
613 ip->locktoken = apr_pmemdup(p, val.dptr + offset, sizeof(*ip->locktoken));
614 offset += sizeof(*ip->locktoken);
615 memcpy(&ip->timeout, val.dptr + offset, sizeof(ip->timeout));
616 offset += sizeof(ip->timeout);
617 memcpy(&ip->key.dsize, val.dptr + offset, sizeof(ip->key.dsize)); /* length of datum */
618 offset += sizeof(ip->key.dsize);
619 ip->key.dptr = apr_pmemdup(p, val.dptr + offset, ip->key.dsize);
620 offset += ip->key.dsize;
622 if (!dav_fs_lock_expired(ip->timeout)) {
623 ip->next = *indirect;
624 *indirect = ip;
1002 dav_lock_indirect *ip;
1015 &dp, &ip)) != NULL) {
1037 for (; ip != NULL; ip = ip->next) {
1038 newlock = dav_fs_alloc_lock(lockdb, ip->key, ip->locktoken);
1042 if ((err = dav_fs_resolve(lockdb, ip, &dp, NULL, NULL)) != NULL) {
1077 dav_lock_indirect *ip;
1083 &dp, &ip)) != NULL) {
1102 for (; ip != NULL; ip = ip->next) {
1103 if (!dav_compare_locktoken(locktoken, ip->locktoken)) {
1104 *lock = dav_fs_alloc_lock(lockdb, ip->key, locktoken);
1113 if ((err = dav_fs_resolve(lockdb, ip, &dp,
1167 dav_lock_indirect *ip;
1172 if ((err = dav_fs_load_lock_record(lockdb, key, 0, &dp, &ip)) != NULL) {
1192 newi->next = ip;
1193 ip = newi;
1222 newi->next = ip;
1223 ip = newi;
1228 if ((err = dav_fs_save_lock_record(lockdb, key, dp, ip)) != NULL) {
1259 dav_lock_indirect *ip;
1278 for (ip = ih; ip != NULL; ip = ip->next) {
1279 if (dav_compare_locktoken(locktoken, ip->locktoken) == 0) {
1281 iprev->next = ip->next;
1285 iprev = ip;
1345 dav_lock_indirect *ip;
1353 &dp, &ip)) != NULL) {
1382 && (err = dav_fs_save_lock_record(lockdb, key, dp, ip)) != NULL) {
1388 for (; ip != NULL; ip = ip->next) {
1392 if ((err = dav_fs_resolve(lockdb, ip, &dp_scan,
1399 newlock = dav_fs_alloc_lock(lockdb, ip->key, dp_scan->locktoken);
1412 if ((err = dav_fs_save_lock_record(lockdb, ip->key, ref_dp,