bRC_Stop = 1, /* Stop calling other plugins */
bRC_Error = 2, /* Some kind of error */
bRC_More = 3, /* More files to backup */
- bRC_Term = 4 /* Unload me */
+ bRC_Term = 4, /* Unload me */
+ bRC_Seen = 5, /* Return code from checkFiles */
+
+ bRC_Max = 9999 /* Max code Bacula can use */
} bRC;
+
/* Context packet as first argument of all functions */
struct bpContext {
void *bContext; /* Bacula private context */
/* Functions */
extern Plugin *new_plugin();
-extern bool load_plugins(void *binfo, void *bfuncs, const char *plugin_dir, const char *type);
+extern bool load_plugins(void *binfo, void *bfuncs, const char *plugin_dir,
+ const char *type, bool is_plugin_compatible(Plugin *plugin));
extern void unload_plugins();
/* Each daemon can register a debug hook that will be called