diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-01-28 15:14:53 +0000 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-01-29 11:52:41 +0000 |
commit | 01877efce3dd93a830cb5bf3ec8b553e69fc3e19 (patch) | |
tree | 1eeba7d652edfb410f38da62731c0bf2872d4880 /src/proto.h | |
parent | 51871d08a48ff781186f7a7b22ec69a1db38eb4c (diff) | |
download | gdbm-01877efce3dd93a830cb5bf3ec8b553e69fc3e19.tar.gz |
Import 1.11 tarballbaserock/tiagogomes/armv8l64
Diffstat (limited to 'src/proto.h')
-rw-r--r-- | src/proto.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/proto.h b/src/proto.h index 39a5e31..1b7a40a 100644 --- a/src/proto.h +++ b/src/proto.h @@ -1,7 +1,7 @@ /* proto.h - The prototypes for the dbm routines. */ /* This file is part of GDBM, the GNU data base manager. - Copyright (C) 1990, 1991, 1993, 2007, 2011 Free Software Foundation, + Copyright (C) 1990, 1991, 1993, 2007, 2011, 2013 Free Software Foundation, Inc. GDBM is free software; you can redistribute it and/or modify @@ -21,6 +21,9 @@ /* From bucket.c */ void _gdbm_new_bucket (GDBM_FILE, hash_bucket *, int); void _gdbm_get_bucket (GDBM_FILE, int); +int _gdbm_read_bucket_at (GDBM_FILE dbf, off_t off, hash_bucket *bucket, + size_t size); + void _gdbm_split_bucket (GDBM_FILE, int); void _gdbm_write_bucket (GDBM_FILE, cache_elem *); @@ -59,4 +62,16 @@ int _gdbm_lock_file (GDBM_FILE); int _gdbm_full_read (GDBM_FILE, void *, size_t); int _gdbm_full_write (GDBM_FILE, void *, size_t); +/* From base64.c */ +int _gdbm_base64_encode (const unsigned char *input, size_t input_len, + unsigned char **output, size_t *output_size, + size_t *outbytes); +int _gdbm_base64_decode (const unsigned char *input, size_t input_len, + unsigned char **output, size_t *output_size, + size_t *inbytes, size_t *outbytes); + +int _gdbm_load (FILE *fp, GDBM_FILE *pdbf, unsigned long *line); +int _gdbm_dump (GDBM_FILE dbf, FILE *fp); + + |