~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to libhashkit-1.0/hashkit.h

Merging bzr://gaz.tangent.org/libmemcached/build/ to Build branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
#include <libhashkit-1.0/function.h>
56
56
#include <libhashkit-1.0/str_algorithm.h>
57
57
#include <libhashkit-1.0/strerror.h>
 
58
#include <libhashkit-1.0/string.h>
58
59
 
59
60
struct hashkit_st
60
61
{
70
71
  struct {
71
72
    bool is_allocated:1;
72
73
  } options;
 
74
 
 
75
  void *_key;
73
76
};
74
77
 
75
78
#ifdef __cplusplus
77
80
#endif
78
81
 
79
82
HASHKIT_API
80
 
hashkit_st *hashkit_create(hashkit_st *hash);
81
 
 
82
 
HASHKIT_API
83
 
hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
84
 
 
85
 
HASHKIT_API
86
 
bool hashkit_compare(const hashkit_st *first, const hashkit_st *second);
87
 
 
88
 
HASHKIT_API
89
 
void hashkit_free(hashkit_st *hash);
 
83
  hashkit_st *hashkit_create(hashkit_st *hash);
 
84
 
 
85
HASHKIT_API
 
86
  hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
 
87
 
 
88
HASHKIT_API
 
89
  bool hashkit_compare(const hashkit_st *first, const hashkit_st *second);
 
90
 
 
91
HASHKIT_API
 
92
  void hashkit_free(hashkit_st *hash);
 
93
 
 
94
HASHKIT_API
 
95
  hashkit_string_st *hashkit_encrypt(hashkit_st *,
 
96
                                     const char* source, size_t source_length);
 
97
 
 
98
HASHKIT_API
 
99
  hashkit_string_st *hashkit_decrypt(hashkit_st *,
 
100
                                     const char* source, size_t source_length);
 
101
 
 
102
HASHKIT_API
 
103
  bool hashkit_key(hashkit_st *, const char *key, const size_t key_length);
90
104
 
91
105
#ifdef __cplusplus
92
106
} // extern "C"