From: Radosław Korzeniewski Date: Sat, 9 Oct 2021 15:51:13 +0000 (+0200) Subject: metaplugin: Add missing files. X-Git-Tag: Beta-15.0.0~845 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a2ed40376c51640dab640c2c9ec8482e056aeb4;p=thirdparty%2Fbacula.git metaplugin: Add missing files. --- diff --git a/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.cpp b/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.cpp new file mode 100644 index 000000000..9c4746682 --- /dev/null +++ b/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.cpp @@ -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 index 000000000..6398345b0 --- /dev/null +++ b/bacula/src/plugins/fd/pluginlib/metaplugin_metadata.h @@ -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_