/*
+ Bacula® - The Network Backup Solution
- Copyright (C) 2007-2012 Kern Sibbald
+ Copyright (C) 2010-2014 Free Software Foundation Europe e.V.
- You may freely use this code to create your own plugin provided
- it is to write a plugin for Bacula licensed under AGPLv3
- (as Bacula is), and in that case, you may also remove
- the above Copyright and this notice as well as modify
- the code in any way.
+ The main author of Bacula is Kern Sibbald, with contributions from many
+ others, a complete list can be found in the file AUTHORS.
+ You may use this file and others of this release according to the
+ license defined in the LICENSE file, which includes the Affero General
+ Public License, v3.0 ("AGPLv3") and some additional permissions and
+ terms pursuant to its AGPLv3 Section 7.
+
+ Bacula® is a registered trademark of Kern Sibbald.
*/
#define BUILD_PLUGIN
* Bacula is going to exit.
*/
bRC DLL_IMP_EXP
-unloadPlugin()
+unloadPlugin()
{
printf("plugin: Unloaded\n");
return bRC_OK;
}
/*
- * Release everything concerning a particular instance of a
+ * Release everything concerning a particular instance of a
* plugin. Normally called when the Job terminates.
*/
static bRC freePlugin(bpContext *ctx)
* Called by core code to get a variable from the plugin.
* Not currently used.
*/
-static bRC getPluginValue(bpContext *ctx, pVariable var, void *value)
+static bRC getPluginValue(bpContext *ctx, pVariable var, void *value)
{
// printf("plugin: getPluginValue var=%d\n", var);
return bRC_OK;
}
-/*
+/*
* Called by core code to set a plugin variable.
* Not currently used.
*/
-static bRC setPluginValue(bpContext *ctx, pVariable var, void *value)
+static bRC setPluginValue(bpContext *ctx, pVariable var, void *value)
{
// printf("plugin: setPluginValue var=%d\n", var);
return bRC_OK;
* Done backing up a file.
*/
static bRC endBackupFile(bpContext *ctx)
-{
+{
return bRC_OK;
}
/*
* Do actual I/O. Bacula calls this after startBackupFile
- * or after startRestoreFile to do the actual file
+ * or after startRestoreFile to do the actual file
* input or output.
*/
static bRC pluginIO(bpContext *ctx, struct io_pkt *io)