extern int unit_generator_on(const char *filename);
extern void unit_generator_off();
extern int unit_generator_process(struct json_object *jdesc, int (*process)(void *closure, const struct unitdesc descs[], unsigned count), void *closure);
extern int unit_generator_on(const char *filename);
extern void unit_generator_off();
extern int unit_generator_process(struct json_object *jdesc, int (*process)(void *closure, const struct unitdesc descs[], unsigned count), void *closure);