Lines Matching refs:key
62 apr_datum_t iter; /* iteration key */
192 dav_error * dav_dbm_fetch(dav_db *db, apr_datum_t key, apr_datum_t *pvalue)
196 if (!key.dptr) {
197 /* no key could be created (namespace not known) => no value */
201 status = apr_dbm_fetch(db->file, key, pvalue);
207 dav_error * dav_dbm_store(dav_db *db, apr_datum_t key, apr_datum_t value)
209 apr_status_t status = apr_dbm_store(db->file, key, value);
214 dav_error * dav_dbm_delete(dav_db *db, apr_datum_t key)
216 apr_status_t status = apr_dbm_delete(db->file, key);
221 int dav_dbm_exists(dav_db *db, apr_datum_t key)
223 return apr_dbm_exists(db->file, key);
288 apr_datum_t key;
297 ** Internal function to build a key
299 ** WARNING: returns a pointer to a "static" buffer holding the key. The
307 apr_datum_t key = { 0 };
325 return key; /* zeroed */
337 /* build the database key */
338 key.dsize = l_ns + 1 + l_name + 1;
339 key.dptr = db->wb_key.buf;
341 return key;
392 apr_datum_t key;
410 key.dptr = DAV_GDBM_NS_KEY;
411 key.dsize = DAV_GDBM_NS_KEY_LEN;
412 if ((err = dav_dbm_fetch(db, key, &value)) != NULL) {
423 ** If there is no METADATA key, then the database may be
427 key.dptr = "NS_TABLE";
428 key.dsize = 8;
429 if (dav_dbm_exists(db, key)) {
470 /* we must copy the key, in case ns_table.buf moves */
486 apr_datum_t key;
490 key.dptr = DAV_GDBM_NS_KEY;
491 key.dsize = DAV_GDBM_NS_KEY_LEN;
503 err = dav_dbm_store(db, key, value);
543 apr_datum_t key = dav_build_key(db, name);
547 if ((err = dav_dbm_fetch(db, key, &value)) != NULL)
555 dav_append_prop(db->pool, key.dptr, value.dptr, phdr);
614 apr_datum_t key = dav_build_key(db, name);
631 return dav_dbm_store(db, key, value);
636 apr_datum_t key = dav_build_key(db, name);
637 return dav_dbm_delete(db, key);
642 apr_datum_t key = dav_build_key(db, name);
643 return dav_dbm_exists(db, key);
684 /* free the previous key. note: if the loop is aborted, then the DBM
685 will toss the key (via pool cleanup) */
692 /* skip past the METADATA key */
707 /* skip past the METADATA key */
720 apr_datum_t key;
724 key = dav_build_key(db, name);
725 rb->key.dptr = apr_pstrdup(db->pool, key.dptr);
726 rb->key.dsize = key.dsize;
728 if ((err = dav_dbm_fetch(db, key, &value)) != NULL)
748 (void) dav_dbm_delete(db, rollback->key);
752 return dav_dbm_store(db, rollback->key, rollback->value);