src/filed/job.c
void new_options(JCR *jcr, findINCEXE *incexe)
{
   if (!incexe) {
      incexe = jcr->ff->fileset->incexe;
   }
   findFOPTS *fo = (findFOPTS *)malloc(sizeof(findFOPTS));
   memset(fo, 0, sizeof(findFOPTS));
   fo->regex.init(1, true);
   fo->regexdir.init(1, true);
   fo->regexfile.init(1, true);
   fo->wild.init(1, true);
   fo->wilddir.init(1, true);
   fo->wildfile.init(1, true);
   fo->wildbase.init(1, true);
   fo->base.init(1, true);
   fo->fstype.init(1, true);
   fo->drivetype.init(1, true);
   incexe->current_opts = fo;
   incexe->opts_list.prepend(fo);
   jcr->ff->fileset->state = state_options;
}
/*
 * Used by plugins to define a new options block
 */
Used by plugins to define a new options block
Used by plugins to define a new options block
void new_options(JCR *jcr, findINCEXE *incexe)
{
   if (!incexe) {
      incexe = jcr->ff->fileset->incexe;
   }
   findFOPTS *fo = (findFOPTS *)malloc(sizeof(findFOPTS));
   memset(fo, 0, sizeof(findFOPTS));
   fo->regex.init(1, true);
   fo->regexdir.init(1, true);
   fo->regexfile.init(1, true);
   fo->wild.init(1, true);
   fo->wilddir.init(1, true);
   fo->wildfile.init(1, true);
   fo->wildbase.init(1, true);
   fo->base.init(1, true);
   fo->fstype.init(1, true);
   fo->drivetype.init(1, true);
   incexe->current_opts = fo;
   incexe->opts_list.prepend(fo);
   jcr->ff->fileset->state = state_options;
}
void new_options ( JCR * jcr , findINCEXE * incexe ) { if ( ! incexe ) { incexe = jcr -> ff -> fileset -> incexe ; } findFOPTS * fo = ( findFOPTS * ) malloc ( sizeof ( findFOPTS ) ) ; memset ( fo , 0 , sizeof ( findFOPTS ) ) ; fo -> regex . init ( 1 , true ) ; fo -> regexdir . init ( 1 , true ) ; fo -> regexfile . init ( 1 , true ) ; fo -> wild . init ( 1 , true ) ; fo -> wilddir . init ( 1 , true ) ; fo -> wildfile . init ( 1 , true ) ; fo -> wildbase . init ( 1 , true ) ; fo -> base . init ( 1 , true ) ; fo -> fstype . init ( 1 , true ) ; fo -> drivetype . init ( 1 , true ) ; incexe -> current_opts = fo ; incexe -> opts_list . prepend ( fo ) ; jcr -> ff -> fileset -> state = state_options ; }
Used by plugins to define a new options block
Used by plugins to define a new options block