summaryrefslogtreecommitdiffstats
path: root/storage/build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
commit9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /storage/build
parentInitial commit. (diff)
downloadthunderbird-upstream.tar.xz
thunderbird-upstream.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'storage/build')
-rw-r--r--storage/build/components.conf27
-rw-r--r--storage/build/moz.build17
-rw-r--r--storage/build/mozStorageCID.h43
3 files changed, 87 insertions, 0 deletions
diff --git a/storage/build/components.conf b/storage/build/components.conf
new file mode 100644
index 0000000000..5953e85927
--- /dev/null
+++ b/storage/build/components.conf
@@ -0,0 +1,27 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+Classes = [
+ {
+ 'js_name': 'storage',
+ 'cid': '{bbbb1d61-438f-4436-92ed-8308e5830fb0}',
+ 'contract_ids': ['@mozilla.org/storage/service;1'],
+ 'interfaces': ['mozIStorageService'],
+ 'singleton': True,
+ 'type': 'mozilla::storage::Service',
+ 'headers': ['/storage/mozStorageService.h'],
+ 'constructor': 'mozilla::storage::Service::getSingleton',
+ },
+ {
+ 'cid': '{3b667ee0-d2da-4ccc-9c3d-95f2ca6a8b4c}',
+ 'contract_ids': ['@mozilla.org/storage/vacuum;1'],
+ 'singleton': True,
+ 'type': 'mozilla::storage::VacuumManager',
+ 'headers': ['/storage/VacuumManager.h'],
+ 'constructor': 'mozilla::storage::VacuumManager::getSingleton',
+ 'categories': {'idle-daily': 'MozStorage Vacuum Manager'},
+ },
+]
diff --git a/storage/build/moz.build b/storage/build/moz.build
new file mode 100644
index 0000000000..0af582bb73
--- /dev/null
+++ b/storage/build/moz.build
@@ -0,0 +1,17 @@
+# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
+# vim: set filetype=python:
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+EXPORTS += [
+ "mozStorageCID.h",
+]
+
+XPCOM_MANIFESTS += [
+ "components.conf",
+]
+
+FINAL_LIBRARY = "xul"
+
+CXXFLAGS += CONFIG["SQLITE_CFLAGS"]
diff --git a/storage/build/mozStorageCID.h b/storage/build/mozStorageCID.h
new file mode 100644
index 0000000000..64f0b6709b
--- /dev/null
+++ b/storage/build/mozStorageCID.h
@@ -0,0 +1,43 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef MOZSTORAGECID_H
+#define MOZSTORAGECID_H
+
+#define MOZ_STORAGE_CONTRACTID_PREFIX "@mozilla.org/storage"
+
+/* b71a1f84-3a70-4d37-a348-f1ba0e27eead */
+#define MOZ_STORAGE_CONNECTION_CID \
+ { \
+ 0xb71a1f84, 0x3a70, 0x4d37, { \
+ 0xa3, 0x48, 0xf1, 0xba, 0x0e, 0x27, 0xee, 0xad \
+ } \
+ }
+
+#define MOZ_STORAGE_CONNECTION_CONTRACTID \
+ MOZ_STORAGE_CONTRACTID_PREFIX "/connection;1"
+
+/* bbbb1d61-438f-4436-92ed-8308e5830fb0 */
+#define MOZ_STORAGE_SERVICE_CID \
+ { \
+ 0xbbbb1d61, 0x438f, 0x4436, { \
+ 0x92, 0xed, 0x83, 0x08, 0xe5, 0x83, 0x0f, 0xb0 \
+ } \
+ }
+
+#define MOZ_STORAGE_SERVICE_CONTRACTID \
+ MOZ_STORAGE_CONTRACTID_PREFIX "/service;1"
+
+/* 3b667ee0-d2da-4ccc-9c3d-95f2ca6a8b4c */
+#define VACUUMMANAGER_CID \
+ { \
+ 0x3b667ee0, 0xd2da, 0x4ccc, { \
+ 0x9c, 0x3d, 0x95, 0xf2, 0xca, 0x6a, 0x8b, 0x4c \
+ } \
+ }
+
+#define VACUUMMANAGER_CONTRACTID MOZ_STORAGE_CONTRACTID_PREFIX "/vacuum;1"
+
+#endif /* MOZSTORAGECID_H */