Mercurial > hg > audiodb
view close.cpp @ 430:2d14d21f826b api-inversion
Make the keys std::set in adb_t a std::map instead.
The key's index can usefully be the value, and now suddenly we can
remove audioDB::getKeyPos and its oh-so-helpful "this should be an STL
map" comment.
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:55:36 +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); }