Update second batch of copyright headers.
[awesomized/libmemcached] / libhashkit-1.0 / hashkit.h
index 97af9866dbfcffc93ea356f482fab5c899cc9c15..da9bd363478a6f54bc071535446176daa444b20e 100644 (file)
@@ -2,7 +2,7 @@
  * 
  *  HashKit library
  *
- *  Copyright (C) 2011 Data Differential, http://datadifferential.com/
+ *  Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/
  *  Copyright (C) 2009-2010 Brian Aker All rights reserved.
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -36,6 +36,9 @@
  */
 
 
+
+
+
 #pragma once
 
 
@@ -55,6 +58,7 @@
 #include <libhashkit-1.0/function.h>
 #include <libhashkit-1.0/str_algorithm.h>
 #include <libhashkit-1.0/strerror.h>
+#include <libhashkit-1.0/string.h>
 
 struct hashkit_st
 {
@@ -70,6 +74,8 @@ struct hashkit_st
   struct {
     bool is_allocated:1;
   } options;
+
+  void *_key;
 };
 
 #ifdef __cplusplus
@@ -77,16 +83,27 @@ extern "C" {
 #endif
 
 HASHKIT_API
-hashkit_st *hashkit_create(hashkit_st *hash);
+  hashkit_st *hashkit_create(hashkit_st *hash);
+
+HASHKIT_API
+  hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
+
+HASHKIT_API
+  bool hashkit_compare(const hashkit_st *first, const hashkit_st *second);
+
+HASHKIT_API
+  void hashkit_free(hashkit_st *hash);
 
 HASHKIT_API
-hashkit_st *hashkit_clone(hashkit_st *destination, const hashkit_st *ptr);
+  hashkit_string_st *hashkit_encrypt(hashkit_st *,
+                                     const char* source, size_t source_length);
 
 HASHKIT_API
-bool hashkit_compare(const hashkit_st *first, const hashkit_st *second);
+  hashkit_string_st *hashkit_decrypt(hashkit_st *,
+                                     const char* source, size_t source_length);
 
 HASHKIT_API
-void hashkit_free(hashkit_st *hash);
+  bool hashkit_key(hashkit_st *, const char *key, const size_t key_length);
 
 #ifdef __cplusplus
 } // extern "C"