diff audioDB-internals.h @ 473:b2fd8113d8bc api-inversion

const declarations for some API arguments. This should make it slightly clearer whose responsibility (the user's) it is to manage the memory pointed to by the corresponding arguments. Suggested by Chris Cannam.
author mas01cr
date Tue, 06 Jan 2009 16:27:01 +0000
parents d3afc91d205d
children
line wrap: on
line diff
--- a/audioDB-internals.h	Tue Jan 06 15:25:39 2009 +0000
+++ b/audioDB-internals.h	Tue Jan 06 16:27:01 2009 +0000
@@ -252,9 +252,9 @@
 int audiodb_track_id_datum(adb_t *, uint32_t, adb_datum_t *);
 int audiodb_free_datum(adb_datum_t *);
 int audiodb_datum_qpointers(adb_datum_t *, uint32_t, double **, double **, adb_qpointers_internal_t *);
-int audiodb_query_spec_qpointers(adb_t *, adb_query_spec_t *, double **, double **, adb_qpointers_internal_t *);
-int audiodb_query_queue_loop(adb_t *, adb_query_spec_t *, adb_qstate_internal_t *, double *, adb_qpointers_internal_t *);
-int audiodb_query_loop(adb_t *, adb_query_spec_t *, adb_qstate_internal_t *);
+int audiodb_query_spec_qpointers(adb_t *, const adb_query_spec_t *, double **, double **, adb_qpointers_internal_t *);
+int audiodb_query_queue_loop(adb_t *, const adb_query_spec_t *, adb_qstate_internal_t *, double *, adb_qpointers_internal_t *);
+int audiodb_query_loop(adb_t *, const adb_query_spec_t *, adb_qstate_internal_t *);
 char *audiodb_index_get_name(const char *, double, uint32_t);
 bool audiodb_index_exists(const char *, double, uint32_t);
-int audiodb_index_query_loop(adb_t *, adb_query_spec_t *, adb_qstate_internal_t *);
+int audiodb_index_query_loop(adb_t *, const adb_query_spec_t *, adb_qstate_internal_t *);