summaryrefslogtreecommitdiffstats
path: root/src/tools/wasmdeployqt/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/wasmdeployqt/common.h')
-rw-r--r--src/tools/wasmdeployqt/common.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/tools/wasmdeployqt/common.h b/src/tools/wasmdeployqt/common.h
new file mode 100644
index 00000000000..258d6161e67
--- /dev/null
+++ b/src/tools/wasmdeployqt/common.h
@@ -0,0 +1,26 @@
+// Copyright (C) 2025 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
+
+#ifndef COMMON_H
+#define COMMON_H
+
+#include <QHash>
+#include <QString>
+
+struct PreloadEntry
+{
+ QString source;
+ QString destination;
+
+ bool operator==(const PreloadEntry &other) const
+ {
+ return source == other.source && destination == other.destination;
+ }
+};
+
+inline uint qHash(const PreloadEntry &key, uint seed = 0)
+{
+ return qHash(key.source, seed) ^ qHash(key.destination, seed);
+}
+
+#endif