Lines Matching refs:desc
3257 static int read_script_info(struct script_desc *desc, const char *filename) in read_script_info() argument
3282 desc->half_liner = strdup(skip_spaces(p)); in read_script_info()
3288 desc->args = strdup(skip_spaces(p)); in read_script_info()
3323 struct script_desc *desc; in list_available_scripts() local
3358 desc = script_desc__findnew(script_root); in list_available_scripts()
3361 read_script_info(desc, script_path); in list_available_scripts()
3368 list_for_each_entry(desc, &script_descs, node) { in list_available_scripts()
3369 sprintf(first_half, "%s %s", desc->name, in list_available_scripts()
3370 desc->args ? desc->args : ""); in list_available_scripts()
3372 desc->half_liner ? desc->half_liner : ""); in list_available_scripts()
3593 struct script_desc *desc; in has_required_arg() local
3597 desc = script_desc__new(NULL); in has_required_arg()
3599 if (read_script_info(desc, script_path)) in has_required_arg()
3602 if (!desc->args) in has_required_arg()
3605 for (p = desc->args; *p; p++) in has_required_arg()
3609 script_desc__delete(desc); in has_required_arg()