X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Fnstring.h;h=6114171a51aa7dba234d7e4ece6408d9abdc8b0e;hp=5d6fc89c390b83ac4ec8804135d775dd49df5621;hb=11572afcaf218cfcbb8e9747f22739f75252c4f4;hpb=f1098084dd54496a61f9a254541190df77edd166 diff --git a/include/nstring.h b/include/nstring.h index 5d6fc89..6114171 100644 --- a/include/nstring.h +++ b/include/nstring.h @@ -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