Mercurial > hg > audiodb
comparison audioDB_API.h @ 672:a35ca2d5f238
Extend results structure to include a key for the query.
Fill that key from the query datum, if given, defaulting to ""; patch up
bindings and tests.
This is so that (Instance x Instance) operations such as querying and
sampling can be supported.
author | mas01cr |
---|---|
date | Fri, 05 Mar 2010 16:00:53 +0000 |
parents | 684339bb8d21 |
children | e1f7cab30701 |
comparison
equal
deleted
inserted
replaced
671:537bfd7e15a1 | 672:a35ca2d5f238 |
---|---|
47 uint64_t length; | 47 uint64_t length; |
48 uint64_t data_region_size; | 48 uint64_t data_region_size; |
49 } adb_status_t; | 49 } adb_status_t; |
50 | 50 |
51 typedef struct adb_result { | 51 typedef struct adb_result { |
52 const char *key; | 52 const char *qkey; |
53 double dist; | 53 const char *ikey; |
54 uint32_t qpos; | 54 uint32_t qpos; |
55 uint32_t ipos; | 55 uint32_t ipos; |
56 double dist; | |
56 } adb_result_t; | 57 } adb_result_t; |
57 | 58 |
58 #define ADB_REFINE_INCLUDE_KEYLIST 1 | 59 #define ADB_REFINE_INCLUDE_KEYLIST 1 |
59 #define ADB_REFINE_EXCLUDE_KEYLIST 2 | 60 #define ADB_REFINE_EXCLUDE_KEYLIST 2 |
60 #define ADB_REFINE_RADIUS 4 | 61 #define ADB_REFINE_RADIUS 4 |