static lua_general_conf_t *get_config(noit_module_generic_t *self) { lua_general_conf_t *conf = noit_image_get_userdata(&self->hdr); if(conf) return conf; conf = calloc(1, sizeof(*conf)); noit_image_set_userdata(&self->hdr, conf); return conf; }
static struct loader_conf *__get_loader_conf(noit_module_loader_t *self) { struct loader_conf *c; c = noit_image_get_userdata(&self->hdr); if(!c) { c = calloc(1, sizeof(*c)); noit_image_set_userdata(&self->hdr, c); } return c; }