view close.cpp @ 431:8632cd387e24 api-inversion

Punishment gluttony. Continue teasing out vague orthogonalities by beginning the task of using an adb_query_parameters_t. This does have the benefit of making the distance calculation clearer, and we begin to see the shape of a putative audiodb_query() emerging from the shrapnel of audioDB::query. (Only the general shape; the detail is still a long, long way away).
author mas01cr
date Wed, 24 Dec 2008 10:55: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);
}