Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib/var-expand.h @ 3749:194295062e5e HEAD
Added kqueue support. Patch by Vaclav Haisman.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 14 Dec 2005 20:51:52 +0200 |
parents | c59fd95ad3ee |
children | 9b873c82bc88 |
line wrap: on
line source
#ifndef __VAR_EXPAND_H #define __VAR_EXPAND_H struct var_expand_table { char key; const char *value; }; /* Expand % variables in src and append the string in dest. table must end with key = 0. */ void var_expand(string_t *dest, const char *str, const struct var_expand_table *table); /* Returns the actual key character for given string, ie. skip any modifiers that are before it. The string should be the data after the '%' character. */ char var_get_key(const char *str); #endif