edits
[iotcloud.git] / version2 / src / C / KeyValue.h
index 06f514b577e096bc59692b9b406a20c3159419d4..f0b0fe2474b430a88bd8d9efbfa60419ee77249a 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef KEYVALUE_H
 #define KEYVALUE_H
 #include "common.h"
+#include "IoTString.h"
 
 /**
  * KeyValue entry for Slot.
@@ -28,4 +29,12 @@ public:
 };
 
 KeyValue *KeyValue_decode(ByteBuffer *bb);
+
+inline unsigned int hashKeyValue(KeyValue *a) {
+       return a->getKey()->hashValue();
+}
+
+inline bool KeyValueEquals(KeyValue *a, KeyValue *b) {
+       return a->getKey()->equals(b->getKey());
+}
 #endif