view close.cpp @ 440:91addb6ce4c4 api-inversion

We plan to make audiodb_insert_datum() an API function That means that we had better not claim success, or more probably fail dramatically, when calling it on a database which happens to have the LARGE_ADB attribute.
author mas01cr
date Wed, 24 Dec 2008 10:56:22 +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);
}