filehash/ffdb_header.c
int filedb_get_data(FILEDB_DB* dbhh, const FILEDB_DBT* key, FILEDB_DBT* data) 
{
  FFDB_DB*  dbh    = (FFDB_DB*)dbhh;
  FFDB_DBT* dbkey  = (FFDB_DBT*)key;
  FFDB_DBT* dbdata = (FFDB_DBT*)data;

  /* Initialize */
  data->data = 0;
  data->size = 0;

  /* now retrieve data from database*/
  return dbh->get(dbh, dbkey, dbdata, 0);
}
/**
 * get key and data pair from a database pointed by pointer dbh
 *
 * @param dbh database pointer
 * @key key associated with this data. This key must be string form
 * @data data to be stored into the database. It is in string form
 *
 * @return 0 on success. Otherwise failure
 */
get key and data pair from a database pointed by pointer dbh
@param dbh database pointer
@key key associated with this data. This key must be string form
@data data to be stored into the database. It is in string form

@return 0 on success. Otherwise failure
get key and data pair from a database pointed by pointer dbh @param dbh database pointer @key key associated with this data . This key must be string form @data data to be stored into the database . It is in string form @return 0 on success . Otherwise failure
int filedb_get_data(FILEDB_DB* dbhh, const FILEDB_DBT* key, FILEDB_DBT* data) 
{
  FFDB_DB*  dbh    = (FFDB_DB*)dbhh;
  FFDB_DBT* dbkey  = (FFDB_DBT*)key;
  FFDB_DBT* dbdata = (FFDB_DBT*)data;
  data->data = 0;
  data->size = 0;
  return dbh->get(dbh, dbkey, dbdata, 0);
}
int filedb_get_data ( FILEDB_DB * dbhh , const FILEDB_DBT * key , FILEDB_DBT * data ) { FFDB_DB * dbh = ( FFDB_DB * ) dbhh ; FFDB_DBT * dbkey = ( FFDB_DBT * ) key ; FFDB_DBT * dbdata = ( FFDB_DBT * ) data ; data -> data = 0 ; data -> size = 0 ; return dbh -> get ( dbh , dbkey , dbdata , 0 ) ; }
get key and data pair from a database pointed by pointer dbh
 @param dbh database pointer
 @key key associated with this data.
get key and data pair from a database pointed by pointer dbh @param dbh database pointer @key key associated with this data .
/* Initialize */ /* now retrieve data from database*/