2 * wordlist.h - Routines for manipulating word lists
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2004 Project Purple
10 #define __WORDLIST_H__
13 #include "keystructs.h"
16 * makewordlist - Takes a string and splits it into a set of unique words.
17 * @wordlist: The current word list.
18 * @words: The string to split and add.
20 * We take words and split it on non alpha numeric characters. These get
21 * added to the word list if they're not already present. If the wordlist
22 * is NULL then we start a new list, otherwise it's search for already
23 * added words. Note that words is modified in the process of scanning.
25 * Returns the new word list.
27 struct ll *makewordlist(struct ll *wordlist, char *word);
30 * makewordlistfromkey - Takes a public key and splits it into a set of
32 * @wordlist: The current word list.
33 * @key: The key to return the words from.
35 * We take words and split it on non alpha numeric characters. These get
36 * added to the word list if they're not already present. If the wordlist
37 * is NULL then we start a new list, otherwise it's search for already
38 * added words. Note that words is modified in the process of scanning.
40 * Returns the new word list.
42 struct ll *makewordlistfromkey(struct ll *wordlist,
43 struct openpgp_publickey *key);
45 #endif /* __WORDLIST_H__ */