summaryrefslogtreecommitdiff
path: root/src/lib-config/iconfig.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-09-22 15:24:40 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-09-22 15:24:40 +0000
commit80df4378d3ea40269f0f4199140b082ad4cd3974 (patch)
tree61e53fe1ffb94a8fb54ddf84c7340ad388dc0426 /src/lib-config/iconfig.h
parent5976d82fa7f13e4fbad576e926459179aaa83f82 (diff)
downloadirssi-80df4378d3ea40269f0f4199140b082ad4cd3974.zip
added config_node_first() function to get the first non-comment node.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1812 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/lib-config/iconfig.h')
-rw-r--r--src/lib-config/iconfig.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib-config/iconfig.h b/src/lib-config/iconfig.h
index d63af031..fc475f4e 100644
--- a/src/lib-config/iconfig.h
+++ b/src/lib-config/iconfig.h
@@ -99,6 +99,9 @@ const char *config_list_find(CONFIG_REC *rec, const char *section, const char *k
CONFIG_NODE *config_list_find_node(CONFIG_REC *rec, const char *section, const char *key, const char *value, const char *value_key);
/* Returns n'th node from list. */
CONFIG_NODE *config_node_index(CONFIG_NODE *node, int index);
+
+/* Returns the first non-comment node in list */
+GSList *config_node_first(GSList *list);
/* Returns the next non-comment node in list */
GSList *config_node_next(GSList *list);