Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/linux-sunxi/sunxi-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Mery <amery@geeks.cl>2012-09-29 18:48:42 +0400
committerAlejandro Mery <amery@geeks.cl>2012-09-29 18:48:42 +0400
commitbae6b6a93a7651608bd6a43ba35a2770509fbc21 (patch)
treecdc2f8975c7c5f661e544f621682dc1f347f66e2 /script.h
parent1f5056275a6c026f308ac6f7ae52125c390d1d7c (diff)
script: add script_find_section() helper
Diffstat (limited to 'script.h')
-rw-r--r--script.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/script.h b/script.h
index 1f7f199..aa14ecf 100644
--- a/script.h
+++ b/script.h
@@ -86,6 +86,10 @@ struct script_section *script_section_new(struct script *script,
/** deletes a section recursvely and removes it from the script */
void script_section_delete(struct script_section *section);
+/** find existing section */
+struct script_section *script_find_section(struct script *section,
+ const char *name);
+
/** deletes an entry and removes it from the section */
void script_entry_delete(struct script_entry *entry);