Lines Matching refs:spec
32 char spec[]; member
37 static struct script_spec *script_spec__new(const char *spec, in script_spec__new() argument
40 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
43 strcpy(s->spec, spec); in script_spec__new()
55 static struct script_spec *script_spec__find(const char *spec) in script_spec__find() argument
60 if (strcasecmp(s->spec, spec) == 0) in script_spec__find()
65 static int script_spec_register(const char *spec, struct scripting_ops *ops) in script_spec_register() argument
69 s = script_spec__find(spec); in script_spec_register()
73 s = script_spec__new(spec, ops); in script_spec_register()
81 struct scripting_ops *script_spec__lookup(const char *spec) in script_spec__lookup() argument
83 struct script_spec *s = script_spec__find(spec); in script_spec__lookup()
91 int script_spec__for_each(int (*cb)(struct scripting_ops *ops, const char *spec)) in script_spec__for_each() argument
97 ret = cb(s->ops, s->spec); in script_spec__for_each()