Mercurial > hg > audiodb
view close.cpp @ 470:c26c5b7ef0d2 api-inversion
Implement libtests/0037 using audiodb_query_spec()
It's a bit wordy; there's also the struct / pointer issue in
audiodb_query_spec_t to think through. But it does work.
author | mas01cr |
---|---|
date | Wed, 31 Dec 2008 16:52:34 +0000 |
parents | 1030664df98c |
children |
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->keymap; delete adb->track_lengths; delete adb->track_offsets; if(adb->cached_lsh) { delete adb->cached_lsh; } close(adb->fd); free(adb); }