]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/plugins/fd/example-plugin-fd.c
Backport from BEE
[bacula/bacula] / bacula / src / plugins / fd / example-plugin-fd.c
index 47d5239a912c35027e8fcf28e66a0ab88fd46a5f..3a6f843f618515ce1f08352079bebba7bcfc2662 100644 (file)
@@ -1,13 +1,17 @@
 /*
+   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
@@ -98,7 +102,7 @@ loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, pInfo **pinfo, pFuncs **pfuncs)
  *  Bacula is going to exit.
  */
 bRC DLL_IMP_EXP
-unloadPlugin() 
+unloadPlugin()
 {
    printf("plugin: Unloaded\n");
    return bRC_OK;
@@ -121,7 +125,7 @@ static bRC newPlugin(bpContext *ctx)
 }
 
 /*
- * 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)
@@ -136,17 +140,17 @@ 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;
@@ -224,13 +228,13 @@ static bRC startBackupFile(bpContext *ctx, struct save_pkt *sp)
  * 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)