Changeset e2ae3eed2723823430eb1dcf4bfb3ef415c86289

Show
Ignore:
Timestamp:
06/18/11 19:35:58 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1308425758 -0400
git-parent:

[74f72b113692b9c712b54b0c063cc1c9a2a36e74]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1308425758 -0400
Message:

docs for stomp_driver and postgres_ingestor

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules/Makefile.in

    r1e8ae2b re2ae3ee  
    7272        @echo "- linking $@" 
    7373 
    74 postgres_ingestor.lo: postgres_ingestor.c 
     74postgres_ingestor.lo: postgres_ingestor.c postgres_ingestor.xmlh 
    7575        @$(CC) $(CPPFLAGS) $(SHCFLAGS) $(PGCFLAGS) -c $< -o $@ 
    7676        @echo "- compiling $<" 
    7777 
    78 stomp_driver.lo:        stomp_driver.c 
     78stomp_driver.lo:        stomp_driver.c stomp_driver.xmlh 
    7979        @$(CC) $(CPPFLAGS) $(SHCFLAGS) @APRCFLAGS@ -c $< -o $@ 
    8080        @echo "- compiling $<" 
  • src/modules/postgres_ingestor.c

    r7357557 re2ae3ee  
    5656#include <assert.h> 
    5757#include <errno.h> 
     58#include "postgres_ingestor.xmlh" 
    5859 
    5960#define DECL_STMT(codename,confname) \ 
     
    16641665    "postgres_ingestor", 
    16651666    "postgres drive for data ingestion", 
    1666     "",  
     1667    postgres_ingestor_xml_description, 
    16671668    postgres_ingestor_onload, 
    16681669  },   
  • src/modules/stomp_driver.c

    r7afb4e3 re2ae3ee  
    3838#include "noit_conf.h" 
    3939#include "libstomp.h" 
     40#include "stomp_driver.xmlh" 
    4041 
    4142struct stomp_driver { 
     
    185186    "stomp_driver", 
    186187    "STOMP driver for IEP MQ submission", 
    187     ""
     188    stomp_driver_xml_description
    188189    noit_stomp_driver_onload 
    189190  }, 
  • src/noit_module.c

    rd2d82a9 re2ae3ee  
    335335      } 
    336336    } 
     337    memset(&iter, 0, sizeof(iter)); 
     338    while(noit_hash_next(&generics, &iter, (const char **)&name, &klen, 
     339                         &vhdr)) { 
     340      noit_image_t *hdr = (noit_image_t *)vhdr; 
     341      if(!strncmp(hdr->name, argv[0], strlen(argv[0]))) { 
     342        if(idx == i) return strdup(hdr->name); 
     343        i++; 
     344      } 
     345    } 
    337346    return NULL; 
    338347  } 
     
    354363    void *vhdr; 
    355364 
    356     nc_printf(ncct, "= Loaders and Modules =\n"); 
     365    nc_printf(ncct, "= Loaders, Modules, and Generics =\n"); 
    357366    while(noit_hash_next(&loaders, &iter, (const char **)&name, &klen, 
    358367                         &vhdr)) { 
     
    362371    memset(&iter, 0, sizeof(iter)); 
    363372    while(noit_hash_next(&modules, &iter, (const char **)&name, &klen, 
     373                         &vhdr)) { 
     374      noit_image_t *hdr = (noit_image_t *)vhdr;; 
     375      nc_printf(ncct, "  %s\n", hdr->name); 
     376    } 
     377    memset(&iter, 0, sizeof(iter)); 
     378    while(noit_hash_next(&generics, &iter, (const char **)&name, &klen, 
    364379                         &vhdr)) { 
    365380      noit_image_t *hdr = (noit_image_t *)vhdr;; 
     
    373388    noit_module_t *mod;  
    374389    mod = noit_module_lookup(argv[0]);  
     390    if(!mod) mod = (noit_module_t *)noit_module_generic_lookup(argv[0]); 
    375391    noit_module_print_help(ncct, mod, argc == 2);  
    376392    return 0;