Mercurial > hg > audiodb
view libtests/0001/prog1.c @ 589:9119f2fa3efe
Header file rearrangement
Make it so that lshlib.h is slightly more like a header file to include
to use the LSH ("class G") class, and slightly less a header file for
developing that class, by removing all the #includes and moving them to
the one-file lshlib.cpp instead.
Make audioDB-internals.h slightly more of a project header file, by
including there all the headers we actually need.
Remove some assert()s (which do nothing) and some Uns32Ts (-> uint32_t)
author | mas01cr |
---|---|
date | Tue, 11 Aug 2009 21:42:13 +0000 |
parents | 342822c2d49a |
children |
line wrap: on
line source
#include "audioDB_API.h" #include "test_utils_lib.h" int main(int argc, char **argv) { adb_t *adb; struct stat st; clean_remove_db(TESTDB); adb = audiodb_open(TESTDB, O_RDWR); if(adb) return 1; adb = audiodb_create(TESTDB, 0, 0, 0); if (!adb) return 1; if(stat(TESTDB, &st)) return 1; audiodb_close(adb); adb = audiodb_create(TESTDB, 0, 0, 0); if(adb) return 1; adb = audiodb_open(TESTDB, O_RDONLY); if (!adb) return 1; audiodb_close(adb); return 104; }