Mercurial > hg > audiodb
comparison bindings/sb-alien/library.lisp @ 673:e1f7cab30701
rename struct adbfoo to struct adb_foo
(or nearest idiomatic equivalent in the appropriate language)
This should have minimal impact on ABI compatibility, but is still formally
a backward-incompatible change (and is potentially an API incompatibility
too, though everyone should be using the typedefed synonyms.
author | mas01cr |
---|---|
date | Fri, 05 Mar 2010 16:00:58 +0000 |
parents | a35ca2d5f238 |
children | e4eae1f59759 |
comparison
equal
deleted
inserted
replaced
672:a35ca2d5f238 | 673:e1f7cab30701 |
---|---|
76 (adb (* adb-t)) | 76 (adb (* adb-t)) |
77 (status (* adb-status-t))) | 77 (status (* adb-status-t))) |
78 (define-int-checking-function %status (adb datum) %%status) | 78 (define-int-checking-function %status (adb datum) %%status) |
79 | 79 |
80 (define-alien-type adb-query-id-t | 80 (define-alien-type adb-query-id-t |
81 (struct adbqueryid | 81 (struct adb-query-id |
82 (datum (* adb-datum-t)) | 82 (datum (* adb-datum-t)) |
83 (sequence-length (unsigned 32)) | 83 (sequence-length (unsigned 32)) |
84 (flags (unsigned 32)) | 84 (flags (unsigned 32)) |
85 (sequence-start (unsigned 32)))) | 85 (sequence-start (unsigned 32)))) |
86 | 86 |
87 (define-alien-type adb-query-parameters-t | 87 (define-alien-type adb-query-parameters-t |
88 (struct adbqueryparameters | 88 (struct adb-query-parameters |
89 (accumulation (unsigned 32)) | 89 (accumulation (unsigned 32)) |
90 (distance (unsigned 32)) | 90 (distance (unsigned 32)) |
91 (npoints (unsigned 32)) | 91 (npoints (unsigned 32)) |
92 (ntracks (unsigned 32)))) | 92 (ntracks (unsigned 32)))) |
93 | 93 |
94 (define-alien-type adb-keylist-t | 94 (define-alien-type adb-keylist-t |
95 (struct adbkeylist | 95 (struct adb-key-list |
96 (nkeys (unsigned 32)) | 96 (nkeys (unsigned 32)) |
97 (keys (* c-string)))) | 97 (keys (* c-string)))) |
98 | 98 |
99 (define-alien-type adb-query-refine-t | 99 (define-alien-type adb-query-refine-t |
100 (struct adbqueryrefine | 100 (struct adb-query-refine |
101 (flags (unsigned 32)) | 101 (flags (unsigned 32)) |
102 (include adb-keylist-t) | 102 (include adb-keylist-t) |
103 (exclude adb-keylist-t) | 103 (exclude adb-keylist-t) |
104 (radius double) | 104 (radius double) |
105 (absolute-threshold double) | 105 (absolute-threshold double) |
106 (relative-threshold double) | 106 (relative-threshold double) |
107 (duration-ratio double) | 107 (duration-ratio double) |
108 (hopsize (unsigned 32)))) | 108 (hopsize (unsigned 32)))) |
109 | 109 |
110 (define-alien-type adb-query-spec-t | 110 (define-alien-type adb-query-spec-t |
111 (struct adbqueryspec | 111 (struct adb-query-spec |
112 (qid adb-query-id-t) | 112 (qid adb-query-id-t) |
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 adb-result |
118 (qkey c-string) | 118 (qkey c-string) |
119 (ikey c-string) | 119 (ikey c-string) |
120 (qpos (unsigned 32)) | 120 (qpos (unsigned 32)) |
121 (ipos (unsigned 32)) | 121 (ipos (unsigned 32)) |
122 (dist double))) | 122 (dist double))) |
123 | 123 |
124 (define-alien-type adb-query-results-t | 124 (define-alien-type adb-query-results-t |
125 (struct adbqueryresults | 125 (struct adb-query-results |
126 (nresults (unsigned 32)) | 126 (nresults (unsigned 32)) |
127 (results (* adb-result-t)))) | 127 (results (* adb-result-t)))) |
128 | 128 |
129 (define-alien-routine ("audiodb_query_spec" %%query) (* adb-query-results-t) | 129 (define-alien-routine ("audiodb_query_spec" %%query) (* adb-query-results-t) |
130 (adb (* adb-t)) | 130 (adb (* adb-t)) |
137 (results (* adb-query-results-t))) | 137 (results (* adb-query-results-t))) |
138 (define-int-checking-function %free-query-results (adb spec results) | 138 (define-int-checking-function %free-query-results (adb spec results) |
139 %%free-query-results) | 139 %%free-query-results) |
140 | 140 |
141 (define-alien-type adb-track-entry-t | 141 (define-alien-type adb-track-entry-t |
142 (struct adbtrackentry | 142 (struct adb-track-entry |
143 (nvectors (unsigned 32)) | 143 (nvectors (unsigned 32)) |
144 (key c-string))) | 144 (key c-string))) |
145 | 145 |
146 (define-alien-type adb-liszt-results-t | 146 (define-alien-type adb-liszt-results-t |
147 (struct adblisztresults | 147 (struct adb-liszt-results |
148 (nresults (unsigned 32)) | 148 (nresults (unsigned 32)) |
149 (entries (* adb-track-entry-t)))) | 149 (entries (* adb-track-entry-t)))) |
150 | 150 |
151 (define-alien-routine ("audiodb_liszt" %%liszt) (* adb-liszt-results-t) | 151 (define-alien-routine ("audiodb_liszt" %%liszt) (* adb-liszt-results-t) |
152 (adb (* adb-t))) | 152 (adb (* adb-t))) |