]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
metaplugin: Add missing files.
authorRadosław Korzeniewski <radoslaw@korzeniewski.net>
Sat, 9 Oct 2021 15:51:13 +0000 (17:51 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:55 +0000 (13:56 +0200)
bacula/src/plugins/fd/pluginlib/metaplugin_metadata.cpp [new file with mode: 0644]
bacula/src/plugins/fd/pluginlib/metaplugin_metadata.h [new file with mode: 0644]

diff --git a/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.cpp b/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.cpp
new file mode 100644 (file)
index 0000000..9c47466
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+   Bacula(R) - The Network Backup Solution
+
+   Copyright (C) 2000-2023 Kern Sibbald
+
+   The original author of Bacula is Kern Sibbald, with contributions
+   from many others, a complete list can be found in the file AUTHORS.
+
+   You may use this file and others of this release according to the
+   license defined in the LICENSE file, which includes the Affero General
+   Public License, v3.0 ("AGPLv3") and some additional permissions and
+   terms pursuant to its AGPLv3 Section 7.
+
+   This notice must be preserved when any source code is
+   conveyed and/or propagated.
+
+   Bacula(R) is a registered trademark of Kern Sibbald.
+ */
+/**
+ * @file metaplugin_accurate.cpp
+ * @author Radosław Korzeniewski (radoslaw@korzeniewski.net)
+ * @brief This is a metadata (ACL, XATTR, METADATA) handling for metaplugin.
+ * @version 1.0.0
+ * @date 2021-09-20
+ *
+ * @copyright Copyright (c) 2021 All rights reserved. IP transferred to Bacula Systems according to agreement.
+ */
+
+#include "metaplugin_metadata.h"
+
+
+/*
+ * libbac uses its own sscanf implementation which is not compatible with
+ * libc implementation, unfortunately.
+ * use bsscanf for Bacula sscanf flavor
+ */
+#ifdef sscanf
+#undef sscanf
+#endif
+
+namespace metaplugin
+{
+namespace metadata
+{
+
+}  // namespace metadata
+}  // namespace metaplugin
diff --git a/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.h b/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.h
new file mode 100644 (file)
index 0000000..6398345
--- /dev/null
@@ -0,0 +1,46 @@
+/*
+   Bacula(R) - The Network Backup Solution
+
+   Copyright (C) 2000-2023 Kern Sibbald
+
+   The original author of Bacula is Kern Sibbald, with contributions
+   from many others, a complete list can be found in the file AUTHORS.
+
+   You may use this file and others of this release according to the
+   license defined in the LICENSE file, which includes the Affero General
+   Public License, v3.0 ("AGPLv3") and some additional permissions and
+   terms pursuant to its AGPLv3 Section 7.
+
+   This notice must be preserved when any source code is
+   conveyed and/or propagated.
+
+   Bacula(R) is a registered trademark of Kern Sibbald.
+ */
+/**
+ * @file metaplugin_metadata.h
+ * @author Radosław Korzeniewski (radoslaw@korzeniewski.net)
+ * @brief This is a metadata (ACL, XATTR, METADATA) handling for metaplugin.
+ * @version 1.0.0
+ * @date 2021-09-20
+ *
+ * @copyright Copyright (c) 2021 All rights reserved. IP transferred to Bacula Systems according to agreement.
+ */
+
+#ifndef _METAPLUGIN_METADATA_H_
+#define _METAPLUGIN_METADATA_H_
+
+#include "pluginlib.h"
+#include "ptcomm.h"
+
+
+namespace metaplugin
+{
+namespace metadata
+{
+   // bRC perform_accurate_check(bpContext *ctx, PTCOMM *ptcomm, POOL_MEM &fname, bool accurate_mode, bool &accurate_mode_err);
+   // bRC perform_accurate_check_get(bpContext *ctx, PTCOMM *ptcomm, POOL_MEM &fname, bool accurate_mode, bool &accurate_mode_err);
+
+}  // namespace accurate
+}  // namespace metaplugin
+
+#endif   // _METAPLUGIN_METADATA_H_