view close.cpp @ 416:6e6f4c1cc14d api-inversion

Initial implementation of accumulators for forthcoming audiodb_query(). Minimally tested using a temporary test harness; do not use as food. As well as the necessary C++ magic, doodle in API header files aiming vaguely for a sane API.
author mas01cr
date Wed, 24 Dec 2008 10:54:40 +0000
parents 58b88ab69424
children 62a0515f59be
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;
  close(adb->fd);
  free(adb);
}