diff options
Diffstat (limited to 'lib/mfdb.h')
-rw-r--r-- | lib/mfdb.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -15,8 +15,10 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -typedef void (*db_item_printer_t)(const char *key, size_t keysize, - const void *content, size_t contsize); +#include <mailutils/dbm.h> + +typedef void (*db_item_printer_t)(struct mu_dbm_datum const *, + struct mu_dbm_datum const *); typedef int (*db_expire_t)(const void *content); struct db_format { @@ -39,6 +41,9 @@ struct db_format *rate_format; struct db_format *tbf_rate_format; struct db_format *greylist_format; +mu_dbm_file_t mf_dbm_open(char *dbname, int access, int mode); +int mf_file_mode_to_safety_criteria(int mode); + void db_format_setup(void); void db_format_enumerate(dbfmt_enumerator_t fp, void *data); |