Show
Ignore:
Timestamp:
02/22/08 03:33:54 (10 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203651234 +0000
git-parent:

[e06b23eaa47ce975bd25ec9124c72ab282f7ae97]

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

rework a lot of config stuff, add docs in a bad place.. README.txt? come on Theo.

Files:

Legend:

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

    r6550c57 ra136e61  
    2727  noit_module_t *module; 
    2828 
    29   if(!noit_conf_get_string(NULL, "/noit/modules/directory", &base)) 
     29  if(!noit_conf_get_string(NULL, "/noit/modules/@directory", &base)) 
    3030    base = strdup(""); 
    3131 
     
    8383  int i, cnt = 0; 
    8484 
    85   sections = noit_conf_get_sections(NULL, "/noit/modules/module", &cnt); 
     85  sections = noit_conf_get_sections(NULL, "/noit/modules//module", &cnt); 
    8686  if(!sections) return; 
    8787  for(i=0; i<cnt; i++) { 
     
    9090    char module_file[PATH_MAX]; 
    9191    char module_name[256]; 
    92     if(!noit_conf_get_stringbuf(sections[i], "image", 
     92    if(!noit_conf_get_stringbuf(sections[i], "ancestor-or-self::node()/@image", 
    9393                                module_file, sizeof(module_file))) { 
    9494      noitL(noit_stderr, "No image defined in module stanza %d\n", i+1); 
    9595      continue; 
    9696    } 
    97     if(!noit_conf_get_stringbuf(sections[i], "name", 
     97    if(!noit_conf_get_stringbuf(sections[i], "ancestor-or-self::node()/@name", 
    9898                                module_name, sizeof(module_name))) { 
    9999      noitL(noit_stderr, "No name defined in module stanza %d\n", i+1);