comparison audioDB_API.h @ 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 c62041316a44
comparison
equal deleted inserted replaced
672:a35ca2d5f238 673:e1f7cab30701
62 #define ADB_REFINE_ABSOLUTE_THRESHOLD 8 62 #define ADB_REFINE_ABSOLUTE_THRESHOLD 8
63 #define ADB_REFINE_RELATIVE_THRESHOLD 16 63 #define ADB_REFINE_RELATIVE_THRESHOLD 16
64 #define ADB_REFINE_DURATION_RATIO 32 64 #define ADB_REFINE_DURATION_RATIO 32
65 #define ADB_REFINE_HOP_SIZE 64 65 #define ADB_REFINE_HOP_SIZE 64
66 66
67 typedef struct adbkeylist { 67 typedef struct adb_keylist {
68 uint32_t nkeys; 68 uint32_t nkeys;
69 const char **keys; 69 const char **keys;
70 } adb_keylist_t; 70 } adb_keylist_t;
71 71
72 typedef struct adbqueryrefine { 72 typedef struct adb_query_refine {
73 uint32_t flags; 73 uint32_t flags;
74 adb_keylist_t include; 74 adb_keylist_t include;
75 adb_keylist_t exclude; 75 adb_keylist_t exclude;
76 double radius; 76 double radius;
77 double absolute_threshold; 77 double absolute_threshold;
86 86
87 #define ADB_DISTANCE_DOT_PRODUCT 1 87 #define ADB_DISTANCE_DOT_PRODUCT 1
88 #define ADB_DISTANCE_EUCLIDEAN_NORMED 2 88 #define ADB_DISTANCE_EUCLIDEAN_NORMED 2
89 #define ADB_DISTANCE_EUCLIDEAN 3 89 #define ADB_DISTANCE_EUCLIDEAN 3
90 90
91 typedef struct adbqueryparameters { 91 typedef struct adb_query_parameters {
92 uint32_t accumulation; 92 uint32_t accumulation;
93 uint32_t distance; 93 uint32_t distance;
94 uint32_t npoints; 94 uint32_t npoints;
95 uint32_t ntracks; 95 uint32_t ntracks;
96 } adb_query_parameters_t; 96 } adb_query_parameters_t;
97 97
98 typedef struct adbqueryresults { 98 typedef struct adb_query_results {
99 uint32_t nresults; 99 uint32_t nresults;
100 adb_result_t *results; 100 adb_result_t *results;
101 } adb_query_results_t; 101 } adb_query_results_t;
102 102
103 #define ADB_QID_FLAG_EXHAUSTIVE 1 103 #define ADB_QID_FLAG_EXHAUSTIVE 1
104 #define ADB_QID_FLAG_ALLOW_FALSE_POSITIVES 2 104 #define ADB_QID_FLAG_ALLOW_FALSE_POSITIVES 2
105 105
106 typedef struct adbqueryid { 106 typedef struct adb_queryid {
107 adb_datum_t *datum; 107 adb_datum_t *datum;
108 uint32_t sequence_length; 108 uint32_t sequence_length;
109 uint32_t flags; 109 uint32_t flags;
110 uint32_t sequence_start; 110 uint32_t sequence_start;
111 } adb_query_id_t; 111 } adb_query_id_t;
112 112
113 typedef struct adbqueryspec { 113 typedef struct adb_query_spec {
114 adb_query_id_t qid; 114 adb_query_id_t qid;
115 adb_query_parameters_t params; 115 adb_query_parameters_t params;
116 adb_query_refine_t refine; 116 adb_query_refine_t refine;
117 } adb_query_spec_t; 117 } adb_query_spec_t;
118 118
119 typedef struct adbtrackentry { 119 typedef struct adb_track_entry {
120 uint32_t nvectors; 120 uint32_t nvectors;
121 const char *key; 121 const char *key;
122 } adb_track_entry_t; 122 } adb_track_entry_t;
123 123
124 typedef struct adblisztresults { 124 typedef struct adb_liszt_results {
125 uint32_t nresults; 125 uint32_t nresults;
126 adb_track_entry_t *entries; 126 adb_track_entry_t *entries;
127 } adb_liszt_results_t; 127 } adb_liszt_results_t;
128 128
129 /*******************************************************************/ 129 /*******************************************************************/