view close.cpp @ 447:b75c1e826058 api-inversion

LESS VERBOSITY Tracing the API as currently implemented will be a little bit of a pain; there won't be any terribly easy way to get helpful diagnostics, and our error codes aren't very helpful. But it's clearly wrong to have a verbosity flag lurking, so we have to zap the messages.
author mas01cr
date Wed, 24 Dec 2008 10:56:49 +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);
}