summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-common-core.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@irssi.org>2009-02-07 23:03:24 +0000
committerahf <ahf@dbcabf3a-b0e7-0310-adc4-f8d773084564>2009-02-07 23:03:24 +0000
commit32e01a5a06e35c98c478413fb6c86818dd930ff3 (patch)
tree3356ca844164a8fc9b61e6f349e07bd26f4cb37d /src/fe-common/core/fe-common-core.h
parentb12bd857a5d5e7561463a7eca76d07925c70a11b (diff)
downloadirssi-32e01a5a06e35c98c478413fb6c86818dd930ff3.zip
Add strarray_find_dest(). Useful for checking whether a server_tag/target or target is found in a vector of strings.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5002 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-common-core.h')
-rw-r--r--src/fe-common/core/fe-common-core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-common-core.h b/src/fe-common/core/fe-common-core.h
index 7f3078de..88b2e94b 100644
--- a/src/fe-common/core/fe-common-core.h
+++ b/src/fe-common/core/fe-common-core.h
@@ -6,4 +6,8 @@ void fe_common_core_init(void);
void fe_common_core_deinit(void);
void fe_common_core_finish_init(void);
+/* Returns TRUE if "dest->target" or "dest->server_tag/dest->target" is found in
+ * array, otherwise FALSE. */
+gboolean strarray_find_dest(char **array, const TEXT_DEST_REC *dest);
+
#endif