diff options
author | NotZed <NotZed@HelixCode.com> | 2000-05-07 11:57:50 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-05-07 11:57:50 +0800 |
commit | f490803d13f53f9615e258126f6fe25eabc83c3e (patch) | |
tree | f841071236ad0133da14d6a854a68efe33ba3db8 /libibex/find.c | |
parent | 05dcdd341dbed148e4d1c6088dbf2dc054e5cc14 (diff) | |
download | gsoc2013-evolution-f490803d13f53f9615e258126f6fe25eabc83c3e.tar.gz gsoc2013-evolution-f490803d13f53f9615e258126f6fe25eabc83c3e.tar.zst gsoc2013-evolution-f490803d13f53f9615e258126f6fe25eabc83c3e.zip |
New function to find out if a file is indexed.
2000-05-06 NotZed <NotZed@HelixCode.com>
* find.c (ibex_contains_name): New function to find out if a file
is indexed.
svn path=/trunk/; revision=2856
Diffstat (limited to 'libibex/find.c')
-rw-r--r-- | libibex/find.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libibex/find.c b/libibex/find.c index e0b5d263c8..1bb58917ac 100644 --- a/libibex/find.c +++ b/libibex/find.c @@ -56,6 +56,22 @@ ibex_find (ibex *ib, char *word) } /** + * ibex_contains_name: + * @ib: + * @name: + * + * Returns #TRUE if the ibex @ib has any index entry for + * the key @name. + * + * Return value: + **/ +gboolean +ibex_contains_name(ibex *ib, char *name) +{ + return g_tree_lookup(ib->files, name) != NULL; +} + +/** * ibex_find_name: Check if a word occurs in a given file * @ib: an ibex * @name: a filename |