src/lib/util.c
const char *job_type_to_str(int type)
{
   const char *str = NULL;

   switch (type) {
   case JT_BACKUP:
      str = _("Backup");
      break;
   case JT_MIGRATED_JOB:
      str = _("Migrated Job");
      break;
   case JT_VERIFY:
      str = _("Verify");
      break;
   case JT_RESTORE:
      str = _("Restore");
      break;
   case JT_CONSOLE:
      str = _("Console");
      break;
   case JT_SYSTEM:
      str = _("System or Console");
      break;
   case JT_ADMIN:
      str = _("Admin");
      break;
   case JT_ARCHIVE:
      str = _("Archive");
      break;
   case JT_JOB_COPY:
      str = _("Job Copy");
      break;
   case JT_COPY:
      str = _("Copy");
      break;
   case JT_MIGRATE:
      str = _("Migrate");
      break;
   case JT_SCAN:
      str = _("Scan");
      break;
   }
   if (!str) {
      str = _("Unknown Type");
   }
   return str;
}
/*
 * Convert Job Type into a string
 */
Convert Job Type into a string
Convert Job Type into a string
const char *job_type_to_str(int type)
{
   const char *str = NULL;
   switch (type) {
   case JT_BACKUP:
      str = _("Backup");
      break;
   case JT_MIGRATED_JOB:
      str = _("Migrated Job");
      break;
   case JT_VERIFY:
      str = _("Verify");
      break;
   case JT_RESTORE:
      str = _("Restore");
      break;
   case JT_CONSOLE:
      str = _("Console");
      break;
   case JT_SYSTEM:
      str = _("System or Console");
      break;
   case JT_ADMIN:
      str = _("Admin");
      break;
   case JT_ARCHIVE:
      str = _("Archive");
      break;
   case JT_JOB_COPY:
      str = _("Job Copy");
      break;
   case JT_COPY:
      str = _("Copy");
      break;
   case JT_MIGRATE:
      str = _("Migrate");
      break;
   case JT_SCAN:
      str = _("Scan");
      break;
   }
   if (!str) {
      str = _("Unknown Type");
   }
   return str;
}
const char * job_type_to_str ( int type ) { const char * str = NULL ; switch ( type ) { case JT_BACKUP : str = _ ( " " ) ; break ; case JT_MIGRATED_JOB : str = _ ( " " ) ; break ; case JT_VERIFY : str = _ ( " " ) ; break ; case JT_RESTORE : str = _ ( " " ) ; break ; case JT_CONSOLE : str = _ ( " " ) ; break ; case JT_SYSTEM : str = _ ( " " ) ; break ; case JT_ADMIN : str = _ ( " " ) ; break ; case JT_ARCHIVE : str = _ ( " " ) ; break ; case JT_JOB_COPY : str = _ ( " " ) ; break ; case JT_COPY : str = _ ( " " ) ; break ; case JT_MIGRATE : str = _ ( " " ) ; break ; case JT_SCAN : str = _ ( " " ) ; break ; } if ( ! str ) { str = _ ( " " ) ; } return str ; }
Convert Job Type into a string
Convert Job Type into a string