]> pd.if.org Git - nbds/blobdiff - include/nstring.h
all structures are parameterized by the datatype for the key
[nbds] / include / nstring.h
index 5d6fc89c390b83ac4ec8804135d775dd49df5621..6114171a51aa7dba234d7e4ece6408d9abdc8b0e 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef NSTRING_H
 #define NSTRING_H
 
+#include "common.h"
+#include "datatype.h"
+
 typedef struct nstring {
     uint32_t len;
     char data[];
@@ -11,4 +14,6 @@ int         ns_cmp   (const nstring_t *ns1, const nstring_t *ns2);
 uint32_t    ns_hash  (const nstring_t *ns);
 nstring_t * ns_dup   (const nstring_t *ns);
 
+extern const datatype_t DATATYPE_NSTRING;
+
 #endif//NSTRING_H