(root)/
glib-2.79.0/
girepository/
cmph/
hashtree.h
       1  #ifndef __CMPH_HASHTREE_H__
       2  #define __CMPH_HASHTREE_H__
       3  
       4  #include "cmph.h"
       5  
       6  typedef struct __hashtree_data_t hashtree_data_t;
       7  typedef struct __hashtree_config_data_t hashtree_config_data_t;
       8  
       9  hashtree_config_data_t *hashtree_config_new();
      10  void hashtree_config_set_hashfuncs(cmph_config_t *mph, CMPH_HASH *hashfuncs);
      11  void hashtree_config_set_leaf_algo(cmph_config_t *mph, CMPH_ALGO leaf_algo);
      12  void hashtree_config_destroy(cmph_config_t *mph);
      13  cmph_t *hashtree_new(cmph_config_t *mph, double c);
      14  
      15  void hashtree_load(FILE *f, cmph_t *mphf);
      16  int hashtree_dump(cmph_t *mphf, FILE *f);
      17  void hashtree_destroy(cmph_t *mphf);
      18  cmph_uint32 hashtree_search(cmph_t *mphf, const char *key, cmph_uint32 keylen);
      19  #endif