Mercurial > hg > audiodb
view close.cpp @ 446:6ac898b19656 api-inversion
Incrementally zapping bits of code.
In this case, the timeval things that were used for timing the query
loop. This functionality is trivially (haha, I said "trivially")
replicable using LD_PRELOAD tricks or, alternatively, a profiler.
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:56:45 +0000 |
parents | 16c5c51a4c32 |
children | 16a903968d18 |
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; delete adb->track_offsets; close(adb->fd); free(adb); }