From: Kern Sibbald Date: Thu, 4 Mar 2010 20:45:08 +0000 (+0100) Subject: Create AddExclude entry point for plugins X-Git-Tag: Release-5.2.1~1649 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=42e7ff2f2c2cfba9e321b024db9b2c88477e6715;p=bacula%2Fbacula Create AddExclude entry point for plugins --- 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;