From 072dd7ce0d7ec0f4e6d3922046b5c3e793fe9cfe Mon Sep 17 00:00:00 2001 From: nicm <> Date: Sun, 4 Sep 2016 11:53:23 +0000 Subject: [PATCH] Add the usual header stuff (#ifdef _ICDB_H_ etc) to icdb.h, ok tedu --- src/include/icdb.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/include/icdb.h b/src/include/icdb.h index feb3c393..ba69081a 100644 --- a/src/include/icdb.h +++ b/src/include/icdb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: icdb.h,v 1.2 2015/11/18 17:59:56 tedu Exp $ */ +/* $OpenBSD: icdb.h,v 1.3 2016/09/04 11:53:23 nicm Exp $ */ /* * Copyright (c) 2015 Ted Unangst * @@ -15,9 +15,15 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#ifndef _ICDB_H_ +#define _ICDB_H_ + +#include + +__BEGIN_DECLS struct icdb; - + struct icdb *icdb_new(uint32_t version, uint32_t nentries, uint32_t entrysize, uint32_t nkeys, uint32_t *keysizes, uint32_t *keyoffsets); @@ -32,3 +38,7 @@ int icdb_add(struct icdb *db, const void *entry); int icdb_rehash(struct icdb *db); int icdb_save(struct icdb *db, int fd); int icdb_close(struct icdb *db); + +__END_DECLS + +#endif /* !_ICDB_H_ */