Mercurial > hg > audiodb
comparison bindings/sb-alien/library.lisp @ 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 | 368c8c72e723 |
children | e1f7cab30701 |
comparison
equal
deleted
inserted
replaced
671:537bfd7e15a1 | 672:a35ca2d5f238 |
---|---|
113 (params adb-query-parameters-t) | 113 (params adb-query-parameters-t) |
114 (refine adb-query-refine-t))) | 114 (refine adb-query-refine-t))) |
115 | 115 |
116 (define-alien-type adb-result-t | 116 (define-alien-type adb-result-t |
117 (struct adbresult | 117 (struct adbresult |
118 (key c-string) | 118 (qkey c-string) |
119 (dist double) | 119 (ikey c-string) |
120 (qpos (unsigned 32)) | 120 (qpos (unsigned 32)) |
121 (ipos (unsigned 32)))) | 121 (ipos (unsigned 32)) |
122 (dist double))) | |
122 | 123 |
123 (define-alien-type adb-query-results-t | 124 (define-alien-type adb-query-results-t |
124 (struct adbqueryresults | 125 (struct adbqueryresults |
125 (nresults (unsigned 32)) | 126 (nresults (unsigned 32)) |
126 (results (* adb-result-t)))) | 127 (results (* adb-result-t)))) |