Mercurial > hg > audiodb
view power.cpp @ 407:a82a2d9b2451 api-inversion
Noodling around while putting off the attack on batchinsert_large_adb()
create.cpp had an unnecessary extern "C" { ... } block. Remove it, and
while we're at it, normalize the whitespace.
author | mas01cr |
---|---|
date | Tue, 09 Dec 2008 20:53:34 +0000 |
parents | 7038f31124d1 |
children |
line wrap: on
line source
#include "audioDB.h" extern "C" { #include "audioDB_API.h" #include "audioDB-internals.h" } int audiodb_power(adb_t *adb) { if(!(adb->flags & O_RDWR)) { return 1; } if(adb->header->length > 0) { return 1; } adb->header->flags |= O2_FLAG_POWER; return audiodb_sync_header(adb); }