Skip to content

Commit

Permalink
Tweak plugin entry points layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent c55c22e commit bb908b8
Show file tree
Hide file tree
Showing 9 changed files with 42 additions and 21 deletions.
7 changes: 5 additions & 2 deletions src/plugins/dird/example-plugin-dir.c
Expand Up @@ -79,7 +79,10 @@ extern "C" {
*
* External entry point called by Bareos to "load" the plugin
*/
bRC loadPlugin(bDirInfo *lbinfo, bDirFuncs *lbfuncs, genpInfo **pinfo, pDirFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bDirInfo *lbinfo,
bDirFuncs *lbfuncs,
genpInfo **pinfo,
pDirFuncs **pfuncs)
{
bfuncs = lbfuncs; /* set Bareos funct pointers */
binfo = lbinfo;
Expand All @@ -94,7 +97,7 @@ bRC loadPlugin(bDirInfo *lbinfo, bDirFuncs *lbfuncs, genpInfo **pinfo, pDirFuncs
/*
* External entry point to unload the plugin
*/
bRC unloadPlugin()
bRC DLL_IMP_EXP unloadPlugin()
{
printf("plugin: Unloaded\n");
return bRC_OK;
Expand Down
7 changes: 5 additions & 2 deletions src/plugins/dird/python-dir.c
Expand Up @@ -102,7 +102,10 @@ extern "C" {
*
* External entry point called by Bareos to "load" the plugin
*/
bRC loadPlugin(bDirInfo *lbinfo, bDirFuncs *lbfuncs, genpInfo **pinfo, pDirFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bDirInfo *lbinfo,
bDirFuncs *lbfuncs,
genpInfo **pinfo,
pDirFuncs **pfuncs)
{
bfuncs = lbfuncs; /* Set Bareos funct pointers */
binfo = lbinfo;
Expand All @@ -125,7 +128,7 @@ bRC loadPlugin(bDirInfo *lbinfo, bDirFuncs *lbfuncs, genpInfo **pinfo, pDirFuncs
/*
* External entry point to unload the plugin
*/
bRC unloadPlugin()
bRC DLL_IMP_EXP unloadPlugin()
{
#ifdef HAVE_PYTHON
/*
Expand Down
5 changes: 4 additions & 1 deletion src/plugins/filed/bpipe-fd.c
Expand Up @@ -117,7 +117,10 @@ extern "C" {
/*
* External entry point called by Bareos to "load" the plugin
*/
bRC DLL_IMP_EXP loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, genpInfo **pinfo, pFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bInfo *lbinfo,
bFuncs *lbfuncs,
genpInfo **pinfo,
pFuncs **pfuncs)
{
bfuncs = lbfuncs; /* set Bareos funct pointers */
binfo = lbinfo;
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/filed/example-plugin-fd.c
Expand Up @@ -80,8 +80,10 @@ extern "C" {
/*
* Plugin called here when it is first loaded
*/
bRC DLL_IMP_EXP
loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, genpInfo **pinfo, pFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bInfo *lbinfo,
bFuncs *lbfuncs,
genpInfo **pinfo,
pFuncs **pfuncs)
{
bfuncs = lbfuncs; /* set Bareos funct pointers */
binfo = lbinfo;
Expand Down
6 changes: 4 additions & 2 deletions src/plugins/filed/python-fd.c
Expand Up @@ -116,8 +116,10 @@ extern "C" {
/*
* Plugin called here when it is first loaded
*/
bRC DLL_IMP_EXP
loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, genpInfo **pinfo, pFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bInfo *lbinfo,
bFuncs *lbfuncs,
genpInfo **pinfo,
pFuncs **pfuncs)
{
bfuncs = lbfuncs; /* Set Bareos funct pointers */
binfo = lbinfo;
Expand Down
7 changes: 5 additions & 2 deletions src/plugins/filed/test-deltaseq-fd.c
Expand Up @@ -127,7 +127,10 @@ extern "C" {
/*
* External entry point called by Bareos to "load" the plugin
*/
bRC loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, genpInfo **pinfo, pFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bInfo *lbinfo,
bFuncs *lbfuncs,
genpInfo **pinfo,
pFuncs **pfuncs)
{
bfuncs = lbfuncs; /* set Bareos funct pointers */
binfo = lbinfo;
Expand All @@ -145,7 +148,7 @@ bRC loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, genpInfo **pinfo, pFuncs **pfuncs
/*
* External entry point to unload the plugin
*/
bRC unloadPlugin()
bRC DLL_IMP_EXP unloadPlugin()
{
// Dmsg(NULL, dbglvl, "delta-test-fd: Unloaded\n");
return bRC_OK;
Expand Down
7 changes: 5 additions & 2 deletions src/plugins/filed/test-plugin-fd.c
Expand Up @@ -131,7 +131,10 @@ extern "C" {
/*
* External entry point called by Bareos to "load" the plugin
*/
bRC loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, genpInfo **pinfo, pFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bInfo *lbinfo,
bFuncs *lbfuncs,
genpInfo **pinfo,
pFuncs **pfuncs)
{
bfuncs = lbfuncs; /* set Bareos funct pointers */
binfo = lbinfo;
Expand All @@ -144,7 +147,7 @@ bRC loadPlugin(bInfo *lbinfo, bFuncs *lbfuncs, genpInfo **pinfo, pFuncs **pfuncs
/*
* External entry point to unload the plugin
*/
bRC unloadPlugin()
bRC DLL_IMP_EXP unloadPlugin()
{
return bRC_OK;
}
Expand Down
9 changes: 5 additions & 4 deletions src/plugins/stored/example-plugin-sd.c
Expand Up @@ -79,8 +79,10 @@ extern "C" {
*
* External entry point called by Bareos to "load" the plugin
*/
bRC DLL_IMP_EXP
loadPlugin(bsdInfo *lbinfo, bsdFuncs *lbfuncs, genpInfo **pinfo, psdFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bsdInfo *lbinfo,
bsdFuncs *lbfuncs,
genpInfo **pinfo,
psdFuncs **pfuncs)
{
bfuncs = lbfuncs; /* set Bareos funct pointers */
binfo = lbinfo;
Expand All @@ -94,8 +96,7 @@ loadPlugin(bsdInfo *lbinfo, bsdFuncs *lbfuncs, genpInfo **pinfo, psdFuncs **pfun
/*
* External entry point to unload the plugin
*/
bRC DLL_IMP_EXP
unloadPlugin()
bRC DLL_IMP_EXP unloadPlugin()
{
printf("example-plugin-sd: Unloaded\n");
return bRC_OK;
Expand Down
9 changes: 5 additions & 4 deletions src/plugins/stored/python-sd.c
Expand Up @@ -103,8 +103,10 @@ extern "C" {
*
* External entry point called by Bareos to "load" the plugin
*/
bRC DLL_IMP_EXP
loadPlugin(bsdInfo *lbinfo, bsdFuncs *lbfuncs, genpInfo **pinfo, psdFuncs **pfuncs)
bRC DLL_IMP_EXP loadPlugin(bsdInfo *lbinfo,
bsdFuncs *lbfuncs,
genpInfo **pinfo,
psdFuncs **pfuncs)
{
bfuncs = lbfuncs; /* Set Bareos funct pointers */
binfo = lbinfo;
Expand All @@ -127,8 +129,7 @@ loadPlugin(bsdInfo *lbinfo, bsdFuncs *lbfuncs, genpInfo **pinfo, psdFuncs **pfun
/*
* External entry point to unload the plugin
*/
bRC DLL_IMP_EXP
unloadPlugin()
bRC DLL_IMP_EXP unloadPlugin()
{
#ifdef HAVE_PYTHON
/*
Expand Down

0 comments on commit bb908b8

Please sign in to comment.