github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/database/leveldb/capi_helper.h (about) 1 // Copyright 2013 <chaishushan{AT}gmail.com>. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 #ifndef GO_LEVELDB_CAPI_HELPER_H_ 6 #define GO_LEVELDB_CAPI_HELPER_H_ 7 8 #include <stdlib.h> 9 #include <leveldb/c.h> 10 11 #ifdef __cplusplus 12 extern "C" { 13 #endif 14 15 /* Write batch */ 16 17 void go_leveldb_writebatch_iterate_helper(leveldb_writebatch_t* batch, void* state); 18 19 /* Comparator */ 20 21 leveldb_comparator_t* leveldb_comparator_create_helper(void* state); 22 23 #ifdef __cplusplus 24 } 25 #endif 26 27 #endif // GO_LEVELDB_CAPI_HELPER_H_