From 1638e0bd924270ec52ea669362c79301e7e34454 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 3 Feb 2008 10:38:50 +0000 Subject: [PATCH] Update git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6359 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/plugins/fd/Makefile | 4 ++-- bacula/src/plugins/fd/fd-plugins.h | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bacula/src/plugins/fd/Makefile b/bacula/src/plugins/fd/Makefile index b5c0459bb3..190b934148 100644 --- a/bacula/src/plugins/fd/Makefile +++ b/bacula/src/plugins/fd/Makefile @@ -7,14 +7,14 @@ CC = g++ -g -O0 -Wall .SUFFIXES: .c .o .c.o: - $(CC) -I../.. -DTEST_PROGRAM -c $< + $(CC) -I../.. -I../../filed -DTEST_PROGRAM -c $< all: fd-plugins example-plugin-fd.so fd-plugins: fd-plugins.o fd-plugins.h $(CC) -L../../lib fd-plugins.o -o main -lbac -lpthread -lssl -l crypto -ldl -example-plugin-fd.o: example-plugin-fd.c fd-plugins.h +example-plugin-fd.o: example-plugin-fd.c ../../filed/fd-plugins.h $(CC) -fPIC -I../.. -c example-plugin-fd.c example-plugin-fd.so: example-plugin-fd.o diff --git a/bacula/src/plugins/fd/fd-plugins.h b/bacula/src/plugins/fd/fd-plugins.h index b9489cf185..92e8eccef4 100644 --- a/bacula/src/plugins/fd/fd-plugins.h +++ b/bacula/src/plugins/fd/fd-plugins.h @@ -71,6 +71,12 @@ typedef enum { typedef enum { bEventJobStart = 1, bEventJobEnd = 2, + bEventBackupStart = 3, + bEventBackupEnd = 4, + bEventRestoreStart = 5, + bEventRestoreEnd = 6, + bEventPluginCommand = 7, + bEventPluginFile = 8 } bEventType; typedef struct s_bEvent { @@ -82,7 +88,7 @@ typedef struct s_baculaInfo { uint32_t version; } bInfo; -/* Bacula version interface and function pointers */ +/* Bacula interface version and function pointers */ typedef struct s_baculaFuncs { uint32_t size; uint32_t version; -- 2.39.5