diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-15 20:55:52 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-11-15 20:55:52 +0300 |
commit | eb81ea9c640d58c665bfd447e2d6f8990833530a (patch) | |
tree | d5c8d08c39fe201000a5df8e251831d1537e443a /src/kvstorage_file.h | |
parent | e31d2fac565ae6f32cb5283eb55392344364b453 (diff) | |
download | rspamd-eb81ea9c640d58c665bfd447e2d6f8990833530a.tar.gz rspamd-eb81ea9c640d58c665bfd447e2d6f8990833530a.zip |
* Add initial skeleton of file based backend
Diffstat (limited to 'src/kvstorage_file.h')
-rw-r--r-- | src/kvstorage_file.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/kvstorage_file.h b/src/kvstorage_file.h new file mode 100644 index 000000000..fab392894 --- /dev/null +++ b/src/kvstorage_file.h @@ -0,0 +1,35 @@ +/* Copyright (c) 2010, Vsevolod Stakhov + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL Rambler BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + +#ifndef KVSTORAGE_FILE_H_ +#define KVSTORAGE_FILE_H_ + +#include "config.h" +#include "kvstorage.h" + +/* Create new file backend */ +struct rspamd_kv_backend* rspamd_kv_file_new (const gchar *filename, guint sync_ops, guint levels); + + +#endif /* KVSTORAGE_FILE_H_ */ |