view close.cpp @ 421:166312a124bc api-inversion

Code spaghettification continues. Include accumulator.h in audioDB.h. This means we also need audioDB_API.h in there, to get the definition of adb_result_t. Use preprocessor defines to prevent audioDB_API.h from being included multiple times. Include an accumulator field in class audioDB.
author mas01cr
date Wed, 24 Dec 2008 10:54:59 +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);
}