Changeset e2ae3eed2723823430eb1dcf4bfb3ef415c86289
- Timestamp:
- 06/18/11 19:35:58
(2 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
| r1e8ae2b |
re2ae3ee |
|
| 72 | 72 | @echo "- linking $@" |
|---|
| 73 | 73 | |
|---|
| 74 | | postgres_ingestor.lo: postgres_ingestor.c |
|---|
| | 74 | postgres_ingestor.lo: postgres_ingestor.c postgres_ingestor.xmlh |
|---|
| 75 | 75 | @$(CC) $(CPPFLAGS) $(SHCFLAGS) $(PGCFLAGS) -c $< -o $@ |
|---|
| 76 | 76 | @echo "- compiling $<" |
|---|
| 77 | 77 | |
|---|
| 78 | | stomp_driver.lo: stomp_driver.c |
|---|
| | 78 | stomp_driver.lo: stomp_driver.c stomp_driver.xmlh |
|---|
| 79 | 79 | @$(CC) $(CPPFLAGS) $(SHCFLAGS) @APRCFLAGS@ -c $< -o $@ |
|---|
| 80 | 80 | @echo "- compiling $<" |
|---|
| r7357557 |
re2ae3ee |
|
| 56 | 56 | #include <assert.h> |
|---|
| 57 | 57 | #include <errno.h> |
|---|
| | 58 | #include "postgres_ingestor.xmlh" |
|---|
| 58 | 59 | |
|---|
| 59 | 60 | #define DECL_STMT(codename,confname) \ |
|---|
| … | … | |
| 1664 | 1665 | "postgres_ingestor", |
|---|
| 1665 | 1666 | "postgres drive for data ingestion", |
|---|
| 1666 | | "", |
|---|
| | 1667 | postgres_ingestor_xml_description, |
|---|
| 1667 | 1668 | postgres_ingestor_onload, |
|---|
| 1668 | 1669 | }, |
|---|
| r7afb4e3 |
re2ae3ee |
|
| 38 | 38 | #include "noit_conf.h" |
|---|
| 39 | 39 | #include "libstomp.h" |
|---|
| | 40 | #include "stomp_driver.xmlh" |
|---|
| 40 | 41 | |
|---|
| 41 | 42 | struct stomp_driver { |
|---|
| … | … | |
| 185 | 186 | "stomp_driver", |
|---|
| 186 | 187 | "STOMP driver for IEP MQ submission", |
|---|
| 187 | | "", |
|---|
| | 188 | stomp_driver_xml_description, |
|---|
| 188 | 189 | noit_stomp_driver_onload |
|---|
| 189 | 190 | }, |
|---|
| rd2d82a9 |
re2ae3ee |
|
| 335 | 335 | } |
|---|
| 336 | 336 | } |
|---|
| | 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 | } |
|---|
| 337 | 346 | return NULL; |
|---|
| 338 | 347 | } |
|---|
| … | … | |
| 354 | 363 | void *vhdr; |
|---|
| 355 | 364 | |
|---|
| 356 | | nc_printf(ncct, "= Loaders and Modules =\n"); |
|---|
| | 365 | nc_printf(ncct, "= Loaders, Modules, and Generics =\n"); |
|---|
| 357 | 366 | while(noit_hash_next(&loaders, &iter, (const char **)&name, &klen, |
|---|
| 358 | 367 | &vhdr)) { |
|---|
| … | … | |
| 362 | 371 | memset(&iter, 0, sizeof(iter)); |
|---|
| 363 | 372 | 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, |
|---|
| 364 | 379 | &vhdr)) { |
|---|
| 365 | 380 | noit_image_t *hdr = (noit_image_t *)vhdr;; |
|---|
| … | … | |
| 373 | 388 | noit_module_t *mod; |
|---|
| 374 | 389 | mod = noit_module_lookup(argv[0]); |
|---|
| | 390 | if(!mod) mod = (noit_module_t *)noit_module_generic_lookup(argv[0]); |
|---|
| 375 | 391 | noit_module_print_help(ncct, mod, argc == 2); |
|---|
| 376 | 392 | return 0; |
|---|