]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/src/lib/plugins.h
authorEric Bollengier <eric@baculasystems.com>
Thu, 23 Apr 2020 14:30:25 +0000 (16:30 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:17 +0000 (10:44 +0200)
This commit is the result of the squash of the following main commits:

bacula/src/lib/plugins.h

index 6c46da2d43cef29531d768278e34d1fa7142dd96..b355a959eff7109b88b66442a7ab0959e7d3d153 100644 (file)
@@ -57,6 +57,12 @@ struct bpContext {
   void *pContext;                        /* Plugin private context */
 };
 
+/* Not used anymore, do not remove for compatibility */
+#define bplugin_mode_t int32_t
+
+/* default plugin license */
+#define BPLUGIN_LICENSE "AGPLv3"
+
 extern "C" {
 typedef bRC (*t_loadPlugin)(void *binfo, void *bfuncs, void **pinfo, void **pfuncs);
 typedef bRC (*t_unloadPlugin)(void);
@@ -70,9 +76,6 @@ public:
    void *pinfo;
    void *pfuncs;
    void *pHandle;
-   bool disabled;
-   bool restoreFileStarted;
-   bool createFileCalled;
 };
 
 /* Functions */
@@ -87,4 +90,8 @@ extern void unload_plugins();
 typedef void (dbg_plugin_hook_t)(Plugin *plug, FILE *fp);
 extern void dbg_plugin_add_hook(dbg_plugin_hook_t *fct);
 
+#if BEEF
+#include "bee_lib_plugins.h"
+#endif
+
 #endif /* __PLUGINS_H */