src/tools/bpluginfo.c
void dump_plugfuncs(progdata * pdata)
{

   ASSERT_NVAL_RET(pdata);

   plugfuncs *pfuncs = pdata->pfuncs;

   ASSERT_NVAL_RET(pfuncs);

   printf("\nPlugin functions:\n");

   switch (pdata->bplugtype) {
   case DIRPLUGIN:
      if (pdata->verbose) {
          if (pfuncs->pdirfuncs.newPlugin) {
             printf(" newPlugin()\n");
          }
          if (pfuncs->pdirfuncs.freePlugin) {
             printf(" freePlugin()\n");
          }
      }
      if (pfuncs->pdirfuncs.getPluginValue) {
         printf(" getPluginValue()\n");
      }
      if (pfuncs->pdirfuncs.setPluginValue) {
         printf(" setPluginValue()\n");
      }
      if (pfuncs->pdirfuncs.handlePluginEvent) {
         printf(" handlePluginEvent()\n");
      }
      break;
   case FDPLUGIN:
      if (pdata->verbose) {
          if (pfuncs->pfdfuncs.newPlugin) {
             printf(" newPlugin()\n");
          }
          if (pfuncs->pfdfuncs.freePlugin) {
             printf(" freePlugin()\n");
          }
      }
      if (pfuncs->pfdfuncs.getPluginValue) {
         printf(" getPluginValue()\n");
      }
      if (pfuncs->pfdfuncs.setPluginValue) {
         printf(" setPluginValue()\n");
      }
      if (pfuncs->pfdfuncs.handlePluginEvent) {
         printf(" handlePluginEvent()\n");
      }
      if (pfuncs->pfdfuncs.startBackupFile) {
         printf(" startBackupFile()\n");
      }
      if (pfuncs->pfdfuncs.endBackupFile) {
         printf(" endBackupFile()\n");
      }
      if (pfuncs->pfdfuncs.startRestoreFile) {
         printf(" startRestoreFile()\n");
      }
      if (pfuncs->pfdfuncs.endRestoreFile) {
         printf(" endRestoreFile()\n");
      }
      if (pfuncs->pfdfuncs.pluginIO) {
         printf(" pluginIO()\n");
      }
      if (pfuncs->pfdfuncs.createFile) {
         printf(" createFile()\n");
      }
      if (pfuncs->pfdfuncs.setFileAttributes) {
         printf(" setFileAttributes()\n");
      }
      if (pfuncs->pfdfuncs.checkFile) {
         printf(" checkFile()\n");
      }
      break;
   case SDPLUGIN:
      if (pdata->verbose) {
          if (pfuncs->psdfuncs.newPlugin) {
             printf(" newPlugin()\n");
          }
          if (pfuncs->psdfuncs.freePlugin) {
             printf(" freePlugin()\n");
          }
      }
      if (pfuncs->psdfuncs.getPluginValue) {
         printf(" getPluginValue()\n");
      }
      if (pfuncs->psdfuncs.setPluginValue) {
         printf(" setPluginValue()\n");
      }
      if (pfuncs->psdfuncs.handlePluginEvent) {
         printf(" handlePluginEvent()\n");
      }
      break;
   default:
      printf("\nUnknown plugin type or other Error\n\n");
   }
}
/*
 * prints any available information about plugin' functions
 *
 * input:
 *    pdata - program data with plugin info structure
 * output:
 *    printed info
 */
prints any available information about plugin' functions
input:
pdata - program data with plugin info structure
output:
printed info
prints any available information about plugin ' functions input : pdata - program data with plugin info structure output : printed info
void dump_plugfuncs(progdata * pdata)
{
   ASSERT_NVAL_RET(pdata);
   plugfuncs *pfuncs = pdata->pfuncs;
   ASSERT_NVAL_RET(pfuncs);
   printf("\nPlugin functions:\n");
   switch (pdata->bplugtype) {
   case DIRPLUGIN:
      if (pdata->verbose) {
          if (pfuncs->pdirfuncs.newPlugin) {
             printf(" newPlugin()\n");
          }
          if (pfuncs->pdirfuncs.freePlugin) {
             printf(" freePlugin()\n");
          }
      }
      if (pfuncs->pdirfuncs.getPluginValue) {
         printf(" getPluginValue()\n");
      }
      if (pfuncs->pdirfuncs.setPluginValue) {
         printf(" setPluginValue()\n");
      }
      if (pfuncs->pdirfuncs.handlePluginEvent) {
         printf(" handlePluginEvent()\n");
      }
      break;
   case FDPLUGIN:
      if (pdata->verbose) {
          if (pfuncs->pfdfuncs.newPlugin) {
             printf(" newPlugin()\n");
          }
          if (pfuncs->pfdfuncs.freePlugin) {
             printf(" freePlugin()\n");
          }
      }
      if (pfuncs->pfdfuncs.getPluginValue) {
         printf(" getPluginValue()\n");
      }
      if (pfuncs->pfdfuncs.setPluginValue) {
         printf(" setPluginValue()\n");
      }
      if (pfuncs->pfdfuncs.handlePluginEvent) {
         printf(" handlePluginEvent()\n");
      }
      if (pfuncs->pfdfuncs.startBackupFile) {
         printf(" startBackupFile()\n");
      }
      if (pfuncs->pfdfuncs.endBackupFile) {
         printf(" endBackupFile()\n");
      }
      if (pfuncs->pfdfuncs.startRestoreFile) {
         printf(" startRestoreFile()\n");
      }
      if (pfuncs->pfdfuncs.endRestoreFile) {
         printf(" endRestoreFile()\n");
      }
      if (pfuncs->pfdfuncs.pluginIO) {
         printf(" pluginIO()\n");
      }
      if (pfuncs->pfdfuncs.createFile) {
         printf(" createFile()\n");
      }
      if (pfuncs->pfdfuncs.setFileAttributes) {
         printf(" setFileAttributes()\n");
      }
      if (pfuncs->pfdfuncs.checkFile) {
         printf(" checkFile()\n");
      }
      break;
   case SDPLUGIN:
      if (pdata->verbose) {
          if (pfuncs->psdfuncs.newPlugin) {
             printf(" newPlugin()\n");
          }
          if (pfuncs->psdfuncs.freePlugin) {
             printf(" freePlugin()\n");
          }
      }
      if (pfuncs->psdfuncs.getPluginValue) {
         printf(" getPluginValue()\n");
      }
      if (pfuncs->psdfuncs.setPluginValue) {
         printf(" setPluginValue()\n");
      }
      if (pfuncs->psdfuncs.handlePluginEvent) {
         printf(" handlePluginEvent()\n");
      }
      break;
   default:
      printf("\nUnknown plugin type or other Error\n\n");
   }
}
void dump_plugfuncs ( progdata * pdata ) { ASSERT_NVAL_RET ( pdata ) ; plugfuncs * pfuncs = pdata -> pfuncs ; ASSERT_NVAL_RET ( pfuncs ) ; printf ( " \n \n " ) ; switch ( pdata -> bplugtype ) { case DIRPLUGIN : if ( pdata -> verbose ) { if ( pfuncs -> pdirfuncs . newPlugin ) { printf ( " \n " ) ; } if ( pfuncs -> pdirfuncs . freePlugin ) { printf ( " \n " ) ; } } if ( pfuncs -> pdirfuncs . getPluginValue ) { printf ( " \n " ) ; } if ( pfuncs -> pdirfuncs . setPluginValue ) { printf ( " \n " ) ; } if ( pfuncs -> pdirfuncs . handlePluginEvent ) { printf ( " \n " ) ; } break ; case FDPLUGIN : if ( pdata -> verbose ) { if ( pfuncs -> pfdfuncs . newPlugin ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . freePlugin ) { printf ( " \n " ) ; } } if ( pfuncs -> pfdfuncs . getPluginValue ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . setPluginValue ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . handlePluginEvent ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . startBackupFile ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . endBackupFile ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . startRestoreFile ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . endRestoreFile ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . pluginIO ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . createFile ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . setFileAttributes ) { printf ( " \n " ) ; } if ( pfuncs -> pfdfuncs . checkFile ) { printf ( " \n " ) ; } break ; case SDPLUGIN : if ( pdata -> verbose ) { if ( pfuncs -> psdfuncs . newPlugin ) { printf ( " \n " ) ; } if ( pfuncs -> psdfuncs . freePlugin ) { printf ( " \n " ) ; } } if ( pfuncs -> psdfuncs . getPluginValue ) { printf ( " \n " ) ; } if ( pfuncs -> psdfuncs . setPluginValue ) { printf ( " \n " ) ; } if ( pfuncs -> psdfuncs . handlePluginEvent ) { printf ( " \n " ) ; } break ; default : printf ( " \n \n \n " ) ; } }
prints any available information about plugin' functions
 input:
    pdata - program data with plugin info structure
 output:
    printed info
prints any available information about plugin ' functions input : pdata - program data with plugin info structure output : printed info