1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef PNANOE_COLLECTOR_H_ #define PNANOE_COLLECTOR_H_ 1 #include "stdbool.h" #include "scrape.h" struct collector { const char *name; void (*collect)(scrape_req *req, void *ctx); void *(*init)(int argc, char *argv[]); bool has_args; }; #endif // PNANOE_COLLECTOR_H_