Show
Ignore:
Timestamp:
05/31/08 17:43:01 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1212255781 +0000
git-parent:

[6390014a64eb9ab5483bc88e66779b6c0ef7a20d]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1212255781 +0000
Message:

make the loading mechanism generic so that we can load something other than checkers. refs #28

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_check.c

    rf921b22 rc39dbcd  
    208208    noit_module_t *mod; 
    209209    mod = noit_module_lookup(check->module); 
    210     if(mod) { 
     210    if(mod && mod->initiate_check) { 
    211211      if(NOIT_CHECK_LIVE(check)) 
    212212        continue; 
    213213      if((check->flags & NP_DISABLED) == 0) { 
    214         if(mod->initiate_check) 
    215           mod->initiate_check(mod, check, 0, NULL); 
     214        mod->initiate_check(mod, check, 0, NULL); 
    216215      } 
    217216      else 
     
    715714          dep->check->target, dep->check->name, 
    716715          check->target, check->name); 
    717     mod->initiate_check(mod, dep->check, 1, check); 
     716    if((dep->check->flags & NP_DISABLED) == 0) 
     717      if(mod->initiate_check) 
     718        mod->initiate_check(mod, dep->check, 1, check); 
    718719  } 
    719720}