configure: only consider hiredis if libgcrypt is also present
[yaz-moved-to-github.git] / src / zoom-p.h
index 3cb9b80..bb6db6f 100644 (file)
@@ -39,6 +39,9 @@
 #if HAVE_LIBMEMCACHED_MEMCACHED_H
 #include <libmemcached/memcached.h>
 #endif
+#if HAVE_HIREDIS
+#include <hiredis/hiredis.h>
+#endif
 
 #define SHPTR 1
 
@@ -107,6 +110,7 @@ struct ZOOM_connection_p {
     zoom_sru_mode sru_mode;
     int no_redirects; /* 0 for no redirects. >0 for number of redirects */
     yaz_cookies_t cookies;
+    char *location;
 
     int log_details;
     int log_api;
@@ -114,6 +118,9 @@ struct ZOOM_connection_p {
 #if HAVE_LIBMEMCACHED_MEMCACHED_H
     memcached_st *mc_st;
 #endif
+#if HAVE_HIREDIS
+    redisContext *redis_c;
+#endif
 };
 
 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;