changeset 448:ac9bf14f7071 api-inversion

audiodb_set_up_dbpointers() is a better name than audiodb_set_up_db().
author mas01cr
date Wed, 24 Dec 2008 10:56:53 +0000
parents b75c1e826058
children bc5a69e81036
files query.cpp
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/query.cpp	Wed Dec 24 10:56:49 2008 +0000
+++ b/query.cpp	Wed Dec 24 10:56:53 2008 +0000
@@ -481,10 +481,7 @@
   return 0;
 }
 
-// FIXME: this is not the right name; we're not actually setting up
-// the database, but copying various bits of it out of mmap()ed tables
-// in order to reduce seeks.
-static int audiodb_set_up_db(adb_t *adb, adb_query_spec_t *spec, adb_qpointers_internal_t *dbpointers) {
+static int audiodb_set_up_dbpointers(adb_t *adb, adb_query_spec_t *spec, adb_qpointers_internal_t *dbpointers) {
   uint32_t nvectors = adb->header->length / (adb->header->dim * sizeof(double));
   uint32_t sequence_length = spec->qid.sequence_length;
 
@@ -603,7 +600,7 @@
   // FIXME: we more than likely don't need very much of the database
   // so make a new method to build these values per-track or, even better, per-point
   if( !( dbH->flags & O2_FLAG_LARGE_ADB) )
-    if(audiodb_set_up_db(adb, spec, &dbpointers)) {
+    if(audiodb_set_up_dbpointers(adb, spec, &dbpointers)) {
       error("failed to set up db");
     }
 
@@ -709,7 +706,7 @@
     error("failed to set up qpointers");
   }
 
-  if(audiodb_set_up_db(adb, spec, &dbpointers)) {
+  if(audiodb_set_up_dbpointers(adb, spec, &dbpointers)) {
     error("failed to set up db");
   }