1 /* @(#)CDDBdefs.h	1.1 01/04/13
2  * Generated by enum2def.awk
3  */
4 /*
5  * @(#)CDDBEnums.h	7.1 01/01/19
6  * from cddb2sdk-1.0.R3
7  *
8  * CDDBEnums.h Copyright (C) 2000 CDDB, Inc. All Rights Reserved.
9  *
10  * Enums used by CDDBControl
11  *
12  * This file is published to 3rd party developers so that they may call the SDK.
13  */
14 #ifndef CDDBENUMS_H
15 #define CDDBENUMS_H
16 
17 
18 #define ERR_DomainMask			0x7ff0000
19 #define ERR_DomainTransport		0x2fa0000
20 #define ERR_DomainService		0x2fb0000
21 #define ERR_DomainControl		0x2fc0000
22 #define ERR_CodeMask			0xffff
23 #define ERR_Busy			0x1
24 #define ERR_NotRegistered		0x2
25 #define ERR_HandleUsed			0x3
26 #define ERR_InvalidParameter		0x4
27 #define ERR_MissingField		0x5
28 #define ERR_MissingProperty		0x6
29 #define ERR_NoCommand			0x7
30 #define ERR_NoClientInfo		0x8
31 #define ERR_NotInitialized		0x9
32 #define ERR_InvalidTagId		0xA
33 #define ERR_Disabled			0xB
34 
35 /*
36  *	NOTE:	The CDDBTRN enums must be kept consistent with
37  *			those defined in cddbslib.h.
38  */
39 #define CDDBTRNOutOfMemory		0x82FA0001
40 #define CDDBTRNBadPointer		0x82FA0002
41 #define CDDBTRNOutOfRange		0x82FA0003
42 #define CDDBTRNCorruptedData		0x82FA0004
43 #define CDDBTRNFieldNotFound		0x82FA0005
44 #define CDDBTRNUnknownEncoding		0x82FA0006
45 #define CDDBTRNSockInitErr		0x82FA0007
46 #define CDDBTRNHostNotFound		0x82FA0008
47 #define CDDBTRNSockCreateErr		0x82FA0009
48 #define CDDBTRNSockOpenErr		0x82FA000A
49 #define CDDBTRNSendFailed		0x82FA000B
50 #define CDDBTRNRecvFailed		0x82FA000C
51 #define CDDBTRNNoEvent			0x82FA000D
52 #define CDDBTRNNoUserInfo		0x82FA000E
53 #define CDDBTRNBatchNest		0x82FA000F
54 #define CDDBTRNBatchNotOpen		0x82FA0010
55 #define CDDBTRNBadResponseSyntax	0x82FA0011
56 #define CDDBTRNUnknownCompression	0x82FA0012
57 #define CDDBTRNTooManyRetries		0x82FA0013
58 #define CDDBTRNRecordNotFound		0x82FA0014
59 #define CDDBTRNKeyTooLong		0x82FA0015
60 #define CDDBTRNURLNotFound		0x82FA0016
61 #define CDDBTRNBadArgument		0x82FA0017
62 #define CDDBTRNUnflattenFailed		0x82FA0018
63 #define CDDBTRNTokenTooLong		0x82FA0019
64 #define CDDBTRNTokenInvalid		0x82FA001A
65 #define CDDBTRNCannotCreateFile		0x82FA001B
66 #define CDDBTRNBadClientCommand		0x82FA001C
67 #define CDDBTRNSendStatsFailed		0x82FA001D
68 #define CDDBTRNUnknownEncryption	0x82FA001E
69 #define CDDBTRNProtocolVersion		0x82FA001F
70 #define CDDBTRNDataStoreVersion		0x82FA0020
71 #define CDDBTRNDataStoreInitFail	0x82FA0021
72 #define CDDBTRNDataStoreNotCached	0x82FA0022
73 #define CDDBTRNCancelled		0x82FA0023
74 #define CDDBTRNServerTimeout		0x82FA0024
75 #define CDDBTRNInvalidURL		0x82FA0025
76 #define CDDBTRNHTTPError		0x82FA0026
77 #define CDDBTRNFileWriteError		0x82FA0027
78 #define CDDBTRNFileDeleteError		0x82FA0028
79 #define CDDBTRNIDInvalidated		0x82FA0029
80 #define CDDBTRNHTTPProxyError		0x82FA002A
81 
82 #define CDDBSVCServiceError		0x82FB0000
83 #define CDDBSVCHandleUsed		0x82FB0001
84 #define CDDBSVCNoEmail			0x82FB0002
85 #define CDDBSVCNoHint			0x82FB0003
86 #define CDDBSVCUnknownHandle		0x82FB0004
87 #define CDDBSVCInvalidField		0x82FB0064
88 #define CDDBSVCMissingField		0x82FB0065
89 #define CDDBSVCLimitReached		0x82FB0066
90 
91 #define CDDBCTLBusy			0x82FC0001
92 #define CDDBCTLNotRegistered		0x82FC0002
93 #define CDDBCTLHandleUsed		0x82FC0003
94 #define CDDBCTLInvalidParameter		0x82FC0004
95 #define CDDBCTLMissingField		0x82FC0005
96 #define CDDBCTLMissingProperty		0x82FC0006
97 #define CDDBCTLNoCommand		0x82FC0007
98 #define CDDBCTLNoClientInfo		0x82FC0008
99 #define CDDBCTLNotInitialized		0x82FC0009
100 #define CDDBCTLInvalidTagId		0x82FC000A
101 #define CDDBCTLDisabled			0x82FC000B
102 
103 #define CDDBCTL_ID3TagNoMemory		0x82FC1000
104 #define CDDBCTL_ID3TagNoData		0x82FC1001
105 #define CDDBCTL_ID3TagBadData		0x82FC1002
106 #define CDDBCTL_ID3TagNoBuffer		0x82FC1003
107 #define CDDBCTL_ID3TagSmallBuffer	0x82FC1004
108 #define CDDBCTL_ID3TagInvalidFrameID	0x82FC1005
109 #define CDDBCTL_ID3TagFieldNotFound	0x82FC1006
110 #define CDDBCTL_ID3TagUnknownFieldType	0x82FC1007
111 #define CDDBCTL_ID3TagAlreadyAttached	0x82FC1008
112 #define CDDBCTL_ID3TagInvalidVersion	0x82FC1009
113 #define CDDBCTL_ID3TagNoFile		0x82FC100A
114 #define CDDBCTL_ID3TagReadonly		0x82FC100B
115 #define CDDBCTL_ID3TagzlibError		0x82FC100C
116 
117 
118 typedef unsigned int CDDBErrors;
119 
120 #define CMD_None			0
121 #define CMD_Invalid			-1
122 #define PROP_Version			1
123 #define PROP_ServiceStatusURL		2
124 #define CMD_IsRegistered		3
125 #define CMD_SetClientInfo		4
126 #define CMD_GetUserInfo			5
127 #define CMD_SetUserInfo			6
128 #define CMD_GetOptions			7
129 #define CMD_SetOptions			8
130 #define CMD_GetMediaToc			9
131 #define CMD_LookupMediaByToc		10
132 #define CMD_GetMatchedDiscInfo		11
133 #define CMD_InvokeFuzzyMatchDialog	12
134 #define CMD_GetFullDiscInfo		13
135 #define CMD_GetDiscInfo			14
136 #define CMD_InvokeDiscInfo		15
137 #define CMD_DisplayDiscInfo		16
138 #define CMD_GetSubmitDisc		17
139 #define CMD_SubmitDisc			18
140 #define CMD_InvokeSubmitDisc		19
141 #define CMD_GetMediaTagId		100
142 #define CMD_LookupMediaByTagId		101
143 #define CMD_LookupMediaByFile		102
144 #define CMD_GetGenreList		20
145 #define CMD_GetGenreTree		21
146 #define CMD_GetGenreInfo		22
147 #define CMD_GetRegionList		23
148 #define CMD_GetRegionInfo		24
149 #define CMD_GetRoleList			25
150 #define CMD_GetRoleTree			26
151 #define CMD_GetRoleInfo			27
152 #define CMD_GetLanguageList		28
153 #define CMD_GetLanguageInfo		29
154 #define CMD_GetFieldList		30
155 #define CMD_GetFieldInfo		31
156 #define CMD_GetURLList			32
157 #define CMD_GetCoverURL			33
158 #define CMD_GetURLManager		34
159 #define CMD_Cancel			35
160 #define CMD_Status			36
161 #define CMD_GetServiceStatus		37
162 #define CMD_ServerNoop			38
163 #define CMD_FlushLocalCache		39
164 #define CMD_UpdateControl		40
165 
166 typedef unsigned int CDDBCommands;
167 
168 #define LOG_DEFAULT			0
169 #define LOG_OFF				0x1
170 #define LOG_WINDOW			0x2
171 #define LOG_FILE			0x4
172 #define LOG_APP				0x8
173 #define LOG_DEST_MASK			0xff
174 #define LOG_EVENT_MASK			0xffffff00
175 #define LOG_EVENT_UI			0x100
176 #define LOG_EVENT_DEVICE		0x200
177 #define LOG_EVENT_SERVER		0x400
178 #define LOG_EVENT_EVENTS		0x800
179 #define LOG_EVENT_COMPLETION		0x1000
180 #define LOG_EVENT_ERROR			0x10000000
181 
182 typedef unsigned int CDDBLogFlags;
183 
184 #define UI_NONE				0
185 #define UI_READONLY			0x1
186 #define UI_EDITMODE			0x2
187 #define UI_SUBMITNEW			0x8
188 #define UI_OK				0x100
189 #define UI_CANCEL			0x200
190 #define UI_DATA_CHANGED			0x400
191 #define UI_FULL				0x1000
192 #define UI_SHORT			0x2000
193 #define UI_DISP_PROGRESS		0x10000
194 #define UI_DISP_STATIC			0x20000
195 #define UI_DISP_BONUS			0x40000
196 
197 typedef unsigned int CDDBUIFlags;
198 
199 #define TAG_MERGE_DEFAULT		0
200 #define TAG_MERGE_ALL			0x1
201 #define TAG_MERGE_ID_ONLY		0x2
202 
203 typedef unsigned int CDDBTagFlags;
204 
205 #define EVENT_COMMAND_COMPLETED		1
206 #define EVENT_LOG_MESSAGE		2
207 #define EVENT_SERVER_MESSAGE		3
208 #define EVENT_COMMAND_PROGRESS		4
209 
210 typedef unsigned int CDDBEventCodes;
211 
212 #define PROP_Default			0x00000000
213 #define PROP_DomainMask			0xff000000
214 #define PROP_Title			0x1
215 #define PROP_Artist			0x2
216 #define PROP_Label			0x4
217 #define PROP_Year			0x8
218 #define PROP_Notes			0x10
219 #define PROP_GenreId			0x20
220 #define PROP_SecondaryGenreId		0x40
221 #define PROP_RegionId			0x80
222 #define PROP_TotalInSet			0x100
223 #define PROP_NumberInSet		0x200
224 #define PROP_Certifier			0x400
225 #define PROP_TitleSort			0x800
226 #define PROP_TitleThe			0x1000
227 #define PROP_ArtistFirstName		0x2000
228 #define PROP_ArtistLastName		0x4000
229 #define PROP_ArtistThe			0x8000
230 #define PROP_Lyrics			0x10000
231 #define PROP_BeatsPerMinute		0x20000
232 #define PROP_ISRC			0x40000
233 #define PROP_Name			0x80000
234 #define PROP_StartTrack			0x100000
235 #define PROP_StartFrame			0x200000
236 #define PROP_EndTrack			0x400000
237 #define PROP_EndFrame			0x800000
238 #define PROP_Href			0x1000001
239 #define PROP_DisplayLink		0x1000002
240 #define PROP_Description		0x1000004
241 #define PROP_Category			0x1000008
242 #define PROP_Size			0x1000010
243 #define PROP_DisplayText		0x1000020
244 #define PROP_Id				0x1000040
245 #define PROP_Compilation		0x1000080
246 
247 typedef unsigned int CDDBProperty;
248 
249 /*
250  *	NOTE:	The following enums must be kept consistent with
251  *			those defined in cddbslib.h.
252  */
253 #define MATCH_NONE			1
254 #define MATCH_MULTIPLE			2
255 #define MATCH_EXACT			3
256 #define MATCH_CODE_SIZER		0xFFFFFFFF
257 
258 typedef unsigned int CDDBMatchCode;
259 
260 #define CMD_CONNECTING			1
261 #define CMD_SENDING			2
262 #define CMD_RECEIVING			3
263 #define CMD_CANCELLED			4
264 #define CMD_WAITING			5
265 #define CMD_COMPLETED			6
266 
267 typedef unsigned int CDDBProgressCodes;
268 
269 #define CACHE_DEFAULT			0
270 #define CACHE_DONT_CONNECT		0x1
271 #define CACHE_DONT_CREATE		0x2
272 #define CACHE_DONT_WRITE_MEDIA		0x10
273 #define CACHE_DONT_WRITE_LIST		0x20
274 #define CACHE_DONT_WRITE_URL		0x40
275 #define CACHE_DONT_WRITE_ANY		0xF0
276 #define CACHE_NO_LOOKUP_MEDIA		0x100
277 #define CACHE_NO_LOOKUP_LIST		0x200
278 #define CACHE_NO_LOOKUP_URL		0x400
279 #define CACHE_NO_LOOKUP_ANY		0xF00
280 #define CACHE_SUBMIT_UPDATE		0x1000
281 #define CACHE_SUBMIT_NEW		0x2000
282 #define CACHE_SUBMIT_OFFLINE		0x4000
283 #define CACHE_SUBMIT_ALL		0xF000
284 #define CACHE_UPDATE_FUZZY		0x10000
285 #define CACHE_UPDATE_CHECK		0x20000
286 
287 
288 typedef unsigned int CDDBCacheFlags;
289 
290 #define FLUSH_DEFAULT			0
291 #define FLUSH_USERINFO			0x1
292 #define FLUSH_CLIENTINFO		0x2
293 #define FLUSH_REGISTRY			0x4
294 #define FLUSH_CACHE_MEDIA		0x10
295 #define FLUSH_CACHE_LISTS		0x20
296 #define FLUSH_CACHE_URLS		0x40
297 #define FLUSH_MEMORY_MEDIA		0x100
298 #define FLUSH_MEMORY_LISTS		0x200
299 #define FLUSH_MEMORY_URLS		0x400
300 
301 typedef unsigned int CDDBFlushFlags;
302 
303 #define MSG_UPDATE			1
304 #define MSG_ENABLE			2
305 #define MSG_DISABLE			3
306 #define MSG_MESSAGE			4
307 
308 typedef unsigned int CDDBServerMessageCodes;
309 
310 #define ACTION_NONE			1
311 #define ACTION_RECOMMENDED		2
312 #define ACTION_REQUIRED			3
313 
314 typedef unsigned int CDDBServerMessageActions;
315 
316 #endif
317