view close.cpp @ 451:ef9ef130e27b api-inversion

Miscellaneous trivial de-audioDB::ifications dbfid, trackTable, sequenceHop, and dbH are all easy; queryPoint and usingQueryPoint only marginally less so.
author mas01cr
date Wed, 24 Dec 2008 10:57:05 +0000
parents 16c5c51a4c32
children 16a903968d18
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;
  delete adb->track_offsets;
  close(adb->fd);
  free(adb);
}