]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/libcitadel.h
* add macro to use conststrs to access hashes
[citadel.git] / libcitadel / lib / libcitadel.h
index 5e8106f8b16acc16050f680cc412e03b88568436..2b05c2a1afc8302c2d3fa968cb5738c4f598ea1c 100644 (file)
@@ -218,7 +218,7 @@ typedef struct _ConstStr {
        const char *Key;
        long len;
 }ConstStr;
-
+#define CKEY(a) (a).Key, (a).len
 
 StrBuf* NewStrBuf(void);
 StrBuf* NewStrBufDup(const StrBuf *CopyMe);