diff options
author | Simon Rettberg | 2017-04-21 16:48:09 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-21 16:48:09 +0200 |
commit | cab08b7e3fcbec061c12b842cf66a8e7d22b11d3 (patch) | |
tree | 82e450cf27b86d6315eaebe76a8dc7c291f12476 /mstorage.h | |
parent | Remove unused string matching helpers (diff) | |
download | ldadp-cab08b7e3fcbec061c12b842cf66a8e7d22b11d3.tar.gz ldadp-cab08b7e3fcbec061c12b842cf66a8e7d22b11d3.tar.xz ldadp-cab08b7e3fcbec061c12b842cf66a8e7d22b11d3.zip |
Delete some more unused files
Diffstat (limited to 'mstorage.h')
-rw-r--r-- | mstorage.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mstorage.h b/mstorage.h deleted file mode 100644 index 258e786..0000000 --- a/mstorage.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef _MSTORAGE_H -#define _MSTORAGE_H - -#include <stddef.h> - -/* (optionally persistent) mmapped storage. */ - -typedef struct mstorage { - char* root; - size_t mapped,used; - int fd; -} mstorage_t; - -void mstorage_init(mstorage_t* p); - -int mstorage_init_persistent(mstorage_t* p,int fd); - -/* Works like strstorage_add, but will return an - * offset to mstorage_root, which is mmapped and may thus change. */ -/* offset -1 ==> error */ -long mstorage_add(mstorage_t* p,const char* s,size_t n); - -/* undo mapping */ -void mstorage_unmap(mstorage_t* p); - -/* this is tinyldap specific. If the data contains at least one 0-byte, - * it is stored in a tinyldap specific encoding: - * char 0; - * uint32 len; - * char data[len] */ -long mstorage_add_bin(mstorage_t* p,const char* s,size_t n); - -#endif |