Browse Source

Add the usual header stuff (#ifdef _ICDB_H_ etc) to icdb.h, ok tedu

OPENBSD_6_1
nicm 8 years ago
parent
commit
072dd7ce0d
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      src/include/icdb.h

+ 12
- 2
src/include/icdb.h View File

@ -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 <tedu@openbsd.org>
*
@ -15,9 +15,15 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _ICDB_H_
#define _ICDB_H_
#include <sys/types.h>
__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_ */

Loading…
Cancel
Save