Lines Matching refs:dbm_cursor
282 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl; local
283 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
289 free(dbm_cursor);
301 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl; local
302 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
306 result = dbm_delete(dbm, dbm_cursor->smndbmc_current_key);
329 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl; local
330 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
340 if (dbm_cursor->smndbmc_current_key.dptr == NULL)
342 dbm_cursor->smndbmc_current_key = dbm_firstkey(dbm);
343 if (dbm_cursor->smndbmc_current_key.dptr == NULL)
352 dbm_cursor->smndbmc_current_key = dbm_nextkey(dbm);
353 if (dbm_cursor->smndbmc_current_key.dptr == NULL)
362 dbdata = dbm_fetch(dbm, dbm_cursor->smndbmc_current_key);
377 key->data = dbm_cursor->smndbmc_current_key.dptr;
378 key->size = dbm_cursor->smndbmc_current_key.dsize;
392 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl; local
393 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
402 result = dbm_store(dbm, dbm_cursor->smndbmc_current_key, dbdata,
434 SMDB_DBM_CURSOR *dbm_cursor; local
440 dbm_cursor = (SMDB_DBM_CURSOR *) malloc(sizeof(SMDB_DBM_CURSOR));
441 dbm_cursor->smndbmc_db = db;
442 dbm_cursor->smndbmc_current_key.dptr = NULL;
443 dbm_cursor->smndbmc_current_key.dsize = 0;
449 cur->smdbc_impl = dbm_cursor;