aboutsummaryrefslogtreecommitdiff
path: root/Src/gracenote/CDDBPlugInBase.h
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/gracenote/CDDBPlugInBase.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/gracenote/CDDBPlugInBase.h')
-rw-r--r--Src/gracenote/CDDBPlugInBase.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/Src/gracenote/CDDBPlugInBase.h b/Src/gracenote/CDDBPlugInBase.h
new file mode 100644
index 00000000..91b5c886
--- /dev/null
+++ b/Src/gracenote/CDDBPlugInBase.h
@@ -0,0 +1,50 @@
+#ifndef CDDB_PLUGIN_BASE_H
+#define CDDB_PLUGIN_BASE_H
+
+// Version of module interface
+#define CDDBMODULE_VERSION 1
+
+// Module Categories
+// modules need to set this approprately to tell the manager what services it provides
+#define CDDBMODULE_DECODER 0x10
+#define CDDBMODULE_DECODERINFO 0x20
+#define CDDBMODULE_ENCODER 0x40
+#define CDDBMODULE_SIGNATURE 0x80
+#define CDDBMODULE_FILEINFO 0x100
+#define CDDBMODULE_SECURITY 0x200
+
+//
+// base module type
+// all modules derive from this type
+//
+#ifndef CDDBMODULEINTERFACE
+#define CDDBMODULEINTERFACE
+typedef struct
+{
+ void *handle;
+ char *moduleID;
+ int version;
+ int categories;
+ int initialized;
+ int (__stdcall *Init)(void*);
+ int (__stdcall *Deinit)();
+} CDDBModuleInterface;
+#endif
+
+// entry point function type
+typedef CDDBModuleInterface* (__cdecl *CDDBModuleQueryInterfaceFunc)(const char* lpszInterface);
+
+
+//
+// internal module handle
+//
+typedef struct
+{
+ void *handle;
+ int initialized;
+ CDDBModuleInterface *baseInterface;
+} CDDBModule;
+
+
+
+#endif /* CDDB_PLUGIN_BASE_H */