]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
* use the hash to store our config.
[citadel.git] / webcit / webcit.h
index 1c8397df9bf91796629f300b76bb2ca0b1692468..6b865e4f9050d57e065efbb70ff687eb3192c7d8 100644 (file)
@@ -100,7 +100,7 @@ extern locale_t wc_locales[];
 #undef PACKAGE_BUGREPORT
 #include "sysdep.h"
 
-
+////////#include "hash.h"
 
 #ifdef HAVE_OPENSSL
 /* Work around RedHat's b0rken OpenSSL includes */
@@ -326,15 +326,6 @@ struct folder {
        int num_rooms;  /**< If this is a floor, how many rooms does it have */
 };
 
-
-/* Linked list member for a list of webcit preferences for a user
- */
-struct wcpref {
-       struct wcpref *next;
-       char *pref_key;
-       char *pref_value;
-};
-
 /**
  * \brief One of these is kept for each active Citadel session.
  * HTTP transactions are bound to on e at a time.
@@ -384,6 +375,7 @@ struct wcsession {
        struct wcsubst *vars;                   /**< HTTP variable substitutions for this page */
        char this_page[512];                    /**< URL of current page */
        char http_host[512];                    /**< HTTP Host: header */
+       HashList *hash_prefs;                   /**< WebCit preferences for this user */
 #ifdef WEBCIT_WITH_CALENDAR_SERVICE            
        /** \brief ical???? */                          
        struct disp_cal {                                       
@@ -413,7 +405,6 @@ struct wcsession {
        time_t last_pager_check;                /**< last time we polled for instant msgs */
        int nonce;                              /**< session nonce (to prevent session riding) */
        int time_format_cache;                  /**< which timeformat does our user like? */
-       struct wcpref *first_pref;              /* linked list of preferences */
 };
 
 /** values for WC->current_iconbar */