Lines Matching refs:dbm_cursor
284 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl;
285 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
291 free(dbm_cursor);
303 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl;
304 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
308 result = dbm_delete(dbm, dbm_cursor->smndbmc_current_key);
331 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl;
332 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
342 if (dbm_cursor->smndbmc_current_key.dptr == NULL)
344 dbm_cursor->smndbmc_current_key = dbm_firstkey(dbm);
345 if (dbm_cursor->smndbmc_current_key.dptr == NULL)
354 dbm_cursor->smndbmc_current_key = dbm_nextkey(dbm);
355 if (dbm_cursor->smndbmc_current_key.dptr == NULL)
364 dbdata = dbm_fetch(dbm, dbm_cursor->smndbmc_current_key);
379 key->data = dbm_cursor->smndbmc_current_key.dptr;
380 key->size = dbm_cursor->smndbmc_current_key.dsize;
394 SMDB_DBM_CURSOR *dbm_cursor = (SMDB_DBM_CURSOR *) cursor->smdbc_impl;
395 SMDB_DBM_DATABASE *db = dbm_cursor->smndbmc_db;
404 result = dbm_store(dbm, dbm_cursor->smndbmc_current_key, dbdata,
436 SMDB_DBM_CURSOR *dbm_cursor;
442 dbm_cursor = (SMDB_DBM_CURSOR *) malloc(sizeof(SMDB_DBM_CURSOR));
443 dbm_cursor->smndbmc_db = db;
444 dbm_cursor->smndbmc_current_key.dptr = NULL;
445 dbm_cursor->smndbmc_current_key.dsize = 0;
451 cur->smdbc_impl = dbm_cursor;