Mercurial > hg > audiodb
view close.cpp @ 441:1a1ea05a94ce api-inversion
clarify audiodb_insert()
write audiodb_insert() (essentially to support the command-line client
audioDB::insert operation) in terms of audiodb_insert_datum() and a new
audiodb_insert_reference() function. These two functions each do
exactly one thing and return failure if they're working on the wrong
kind of database.
author | mas01cr |
---|---|
date | Wed, 24 Dec 2008 10:56:25 +0000 |
parents | 62a0515f59be |
children | 16c5c51a4c32 |
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; close(adb->fd); free(adb); }