]> git.ipfire.org Git - thirdparty/bacula.git/commit
pluginlib: Update metaplugin to use commctx.
authorRadosław Korzeniewski <radekk@inteos.pl>
Tue, 5 Jan 2021 17:17:33 +0000 (18:17 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:00 +0000 (09:03 +0100)
commit9487c8fa6dbd3c2ed71d0b63a83d8ad03ccd3f86
tree7671cb0d06464a8557d34986194f08601316a80e
parented2d47ff0076fd8a5c6b1b5e54bd02a46015e189
pluginlib: Update metaplugin to use commctx.

This is a final metaplugin refactoring which allow to move
all metaplugin based plugins (kubernetes, swift and rhv) to use
a common code base removing all unwanted coding and introduce
a static configuration only. Now all you need to define a next
metaplugin is to define a following variables and link metaplugin.lo:

// Plugin Info definitions
extern const char *PLUGIN_LICENSE;
extern const char *PLUGIN_AUTHOR;
extern const char *PLUGIN_DATE;
extern const char *PLUGIN_VERSION;
extern const char *PLUGIN_DESCRIPTION;

// Plugin linking time variables
extern const char *PLUGINPREFIX;
extern const char *PLUGINNAME;
extern const char *PLUGINAPI;
extern const char *BACKEND_CMD;

// The list of restore options saved to the RestoreObject.
extern struct ini_items plugin_items_dump[];

// the list of valid plugin options
extern const char *valid_params[];
bacula/src/plugins/fd/pluginlib/metaplugin.cpp
bacula/src/plugins/fd/pluginlib/metaplugin.h