From 35a0c7aa57e4cb6b544edc3e02730a06c8d27be9 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 4 Mar 2010 21:45:08 +0100 Subject: [PATCH] Create AddExclude entry point for plugins --- bacula/src/filed/fd_plugins.c | 9 ++++++++- bacula/src/filed/fd_plugins.h | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bacula/src/filed/fd_plugins.c b/bacula/src/filed/fd_plugins.c index c864d7a8e8..99e8f3d96f 100644 --- a/bacula/src/filed/fd_plugins.c +++ b/bacula/src/filed/fd_plugins.c @@ -62,6 +62,7 @@ static bRC baculaDebugMsg(bpContext *ctx, const char *file, int line, static void *baculaMalloc(bpContext *ctx, const char *file, int line, size_t size); static void baculaFree(bpContext *ctx, const char *file, int line, void *mem); +static bRC baculaAddExclude(bpContext *ctx, const char *file); static bool is_plugin_compatible(Plugin *plugin); /* @@ -91,7 +92,8 @@ static bFuncs bfuncs = { baculaJobMsg, baculaDebugMsg, baculaMalloc, - baculaFree + baculaFree, + baculaAddExclude }; /* @@ -101,6 +103,7 @@ struct bacula_ctx { JCR *jcr; /* jcr for plugin */ bRC rc; /* last return code */ bool disabled; /* set if plugin disabled */ + findFILESET *fileset; /* pointer to exclude files */ }; static bool is_plugin_disabled(JCR *jcr) @@ -1013,6 +1016,10 @@ static void baculaFree(bpContext *ctx, const char *file, int line, void *mem) #endif } +static bRC baculaAddExclude(bpContext *ctx, const char *file) +{ + return bRC_Error; +} #ifdef TEST_PROGRAM diff --git a/bacula/src/filed/fd_plugins.h b/bacula/src/filed/fd_plugins.h index 0e95d4640a..f64ba1b17a 100644 --- a/bacula/src/filed/fd_plugins.h +++ b/bacula/src/filed/fd_plugins.h @@ -216,6 +216,7 @@ typedef struct s_baculaFuncs { void *(*baculaMalloc)(bpContext *ctx, const char *file, int line, size_t size); void (*baculaFree)(bpContext *ctx, const char *file, int line, void *mem); + bRC (*AddExclude)(bpContext *ctx, const char *file); } bFuncs; -- 2.39.5