github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/database/leveldb.chai2010/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  // WriteBatch
    16  void leveldb_writebatch_iterate_helper(leveldb_writebatch_t* batch, void* state);
    17  
    18  // Comparator
    19  leveldb_comparator_t* leveldb_comparator_create_helper(void* state);
    20  
    21  // FilterPolicy
    22  leveldb_filterpolicy_t* leveldb_filterpolicy_create_helper(void* state);
    23  
    24  #ifdef __cplusplus
    25  }
    26  #endif
    27  #endif	// GO_LEVELDB_CAPI_HELPER_H_