aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_local/Main.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/Plugins/Library/ml_local/Main.h
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'Src/Plugins/Library/ml_local/Main.h')
-rw-r--r--Src/Plugins/Library/ml_local/Main.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/Src/Plugins/Library/ml_local/Main.h b/Src/Plugins/Library/ml_local/Main.h
new file mode 100644
index 00000000..bde0bc52
--- /dev/null
+++ b/Src/Plugins/Library/ml_local/Main.h
@@ -0,0 +1,71 @@
+#ifndef NULLSOFT_MAINH
+#define NULLSOFT_MAINH
+
+#include <windows.h>
+#include <windowsx.h>
+#include <shlwapi.h>
+#include "..\..\General\gen_ml/ml.h"
+#include "../nu/MediaLibraryInterface.h"
+#include "../nu/DialogSkinner.h"
+#include "../winamp/wa_ipc.h"
+#include "ml_local.h"
+#include <shlobj.h>
+#include "../nde/nde.h"
+#include "../nde/nde_c.h"
+#include <time.h>
+#include "../Agave/Language/api_language.h"
+#include "..\..\General\gen_ml/config.h"
+#include "api__ml_local.h"
+#include "../replicant/nu/AutoWide.h"
+#include "../replicant/nu/AutoChar.h"
+#include "AlbumArtCache.h"
+#include "./local_menu.h"
+#include "../playlist/ifc_playlistloadercallback.h"
+
+#define WM_QUERYFILEINFO (WM_USER + 65)
+#define WM_SHOWFILEINFO (WM_USER + 64) // wParam - bForceUpdate, lParam - pszFileName
+
+extern winampMediaLibraryPlugin plugin;
+extern int winampVersion;
+extern int substantives;
+extern int play_enq_rnd_alt;
+extern bool nde_error;
+extern HMENU wa_playlists_cmdmenu;
+extern prefsDlgRecW preferences;
+extern HWND hwndSearchGlobal;
+
+void EatKeyboard();
+void HookPlaylistEditor();
+void UnhookPlaylistEditor();
+extern bool skipTitleInfo;
+extern wchar_t *recent_fn;
+
+extern int IPC_GET_CLOUD_HINST, IPC_GET_CLOUD_ACTIVE, IPC_CLOUD_ENABLED;
+extern LRESULT ML_IPC_MENUFUCKER_BUILD;
+extern LRESULT ML_IPC_MENUFUCKER_RESULT;
+
+extern int groupBtn, enqueuedef;
+extern LARGE_INTEGER freq;
+
+class PLCallBackW : public ifc_playlistloadercallback
+{
+public:
+ PLCallBackW(void){};
+ ~PLCallBackW(void){};
+public:
+ void OnFile(const wchar_t *filename, const wchar_t *title, int lengthInMS, ifc_plentryinfo *info)
+ {
+ mediaLibrary.AddToMediaLibrary(filename);
+ }
+ RECVS_DISPATCH;
+};
+
+extern "C" void qsort_itemRecord(void *base, size_t num, const void *context,
+int (__fastcall *comp)(const void *, const void *, const void *));
+
+void MigrateArtCache();
+void setCloudValue(itemRecordW *item, const wchar_t* value);
+
+void onStartPlayFileTrack(const wchar_t *filename, bool resume);
+
+#endif \ No newline at end of file