view close.cpp @ 435:53c487885b2c api-inversion

begin pushing an adb_query_spec_t * all the way through query. Almost all of the query specification data is in there now; missing are the key list refinement and the query datum. Mostly eliminate uses of the audioDB::sequenceLength member variable throughout query.cpp. It's still used in functions in index.cpp, though, so make sure that a correct value is installed before calling audioDB::index_query_loop()
author mas01cr
date Wed, 24 Dec 2008 10:55:56 +0000
parents 62a0515f59be
children 16c5c51a4c32
line wrap: on
line source
#include "audioDB.h"
extern "C" {
#include "audioDB_API.h"
#include "audioDB-internals.h"
}

void audiodb_close(adb_t *adb) {
  free(adb->path);
  free(adb->header);
  delete adb->keys;
  delete adb->track_lengths;
  close(adb->fd);
  free(adb);
}