projects
/
iotcloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
edits
[iotcloud.git]
/
version2
/
src
/
C
/
KeyValue.h
diff --git
a/version2/src/C/KeyValue.h
b/version2/src/C/KeyValue.h
index 06f514b577e096bc59692b9b406a20c3159419d4..f0b0fe2474b430a88bd8d9efbfa60419ee77249a 100644
(file)
--- a/
version2/src/C/KeyValue.h
+++ b/
version2/src/C/KeyValue.h
@@
-1,6
+1,7
@@
#ifndef KEYVALUE_H
#define KEYVALUE_H
#include "common.h"
#ifndef KEYVALUE_H
#define KEYVALUE_H
#include "common.h"
+#include "IoTString.h"
/**
* KeyValue entry for Slot.
/**
* KeyValue entry for Slot.
@@
-28,4
+29,12
@@
public:
};
KeyValue *KeyValue_decode(ByteBuffer *bb);
};
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
#endif