comparison audioDB_API.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 8fb85fbcaba6
comparison
equal deleted inserted replaced
472:0f96ad351990 473:b2fd8113d8bc
179 /* You'll need to turn both of these on to do anything useful */ 179 /* You'll need to turn both of these on to do anything useful */
180 int audiodb_l2norm(adb_ptr mydb); 180 int audiodb_l2norm(adb_ptr mydb);
181 int audiodb_power(adb_ptr mydb); 181 int audiodb_power(adb_ptr mydb);
182 182
183 /* insert functions */ 183 /* insert functions */
184 int audiodb_insert_datum(adb_t *, adb_datum_t *); 184 int audiodb_insert_datum(adb_t *, const adb_datum_t *);
185 int audiodb_insert_reference(adb_t *, adb_reference_t *); 185 int audiodb_insert_reference(adb_t *, const adb_reference_t *);
186 int audiodb_insert(adb_ptr mydb, adb_insert_ptr ins); 186 int audiodb_insert(adb_ptr mydb, adb_insert_ptr ins);
187 int audiodb_batchinsert(adb_ptr mydb, adb_insert_ptr ins, unsigned int size); 187 int audiodb_batchinsert(adb_ptr mydb, adb_insert_ptr ins, unsigned int size);
188 188
189 /* query function */ 189 /* query function */
190 int audiodb_query(adb_ptr mydb, adb_query_ptr adbq, adb_queryresult_ptr adbqres); 190 int audiodb_query(adb_ptr mydb, adb_query_ptr adbq, adb_queryresult_ptr adbqres);
191 adb_query_results_t *audiodb_query_spec(adb_t *, adb_query_spec_t *); 191 adb_query_results_t *audiodb_query_spec(adb_t *, const adb_query_spec_t *);
192 int audiodb_query_free_results(adb_t *, adb_query_spec_t *, adb_query_results_t *); 192 int audiodb_query_free_results(adb_t *, const adb_query_spec_t *, adb_query_results_t *);
193 193
194 /* database status */ 194 /* database status */
195 int audiodb_status(adb_ptr mydb, adb_status_ptr status); 195 int audiodb_status(adb_ptr mydb, adb_status_ptr status);
196 196
197 /* varoius dump formats */ 197 /* varoius dump formats */