]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
Began moving date outputs to strftime_l()
[citadel.git] / webcit / webcit.h
index 953b798fbca373e98e6782e9e403c8f983141f5a..0684163d2f7e920b55bf0de96ebee11e78dec555 100644 (file)
@@ -1,5 +1,9 @@
 /* $Id$ */
 
+/** we need _GNU_SOURCE for various functions arround the NLS-Stuff */
+#define _GNU_SOURCE
+
+
 #include <ctype.h>
 #include <stdlib.h>
 #ifdef HAVE_UNISTD_H
 #include <iconv.h>
 #endif
 
-#include "gettext.h"
-
-#if ENABLE_NLS
+#ifdef ENABLE_NLS
+#include <libintl.h>
 #include <locale.h>
+extern locale_t wc_locales[];
 #define _(string)      gettext(string)
 #else
 #define _(string)      (string)
@@ -413,6 +417,7 @@ struct serv_info serv_info;
 extern char floorlist[128][SIZ];
 extern char *axdefs[];
 extern char *ctdlhost, *ctdlport;
+extern int http_port;
 extern char *server_cookie;
 extern int is_https;
 extern int setup_wizard;
@@ -482,6 +487,7 @@ void embed_message(char *msgnum_as_string);
 void print_message(char *msgnum_as_string);
 void display_headers(char *msgnum_as_string);
 void text_to_server(char *ptr);
+void text_to_server_qp(char *ptr);
 void display_enter(void);
 void post_message(void);
 void confirm_delete_msg(void);
@@ -610,6 +616,7 @@ int load_msg_ptrs(char *servcmd, int with_headers);
 void CtdlEncodeBase64(char *dest, const char *source, size_t sourcelen);
 int CtdlDecodeBase64(char *dest, const char *source, size_t length);
 void free_attachments(struct wcsession *sess);
+void free_march_list(struct wcsession *wcf);
 void set_room_policy(void);
 void display_inetconf(void);
 void save_inetconf(void);
@@ -677,6 +684,10 @@ void end_tab(int tabnum, int num_tabs);
 void str_wiki_index(char *s);
 void display_wiki_page(void);
 
+#ifdef HAVE_ICONV
+iconv_t ctdl_iconv_open(const char *tocode, const char *fromcode);
+#endif
+
 void embed_room_banner(char *, int);
 
 /* navbar types that can be passed to embed_room_banner */
@@ -718,14 +729,15 @@ void initialize_months_and_days(void);
 void http_datestring(char *buf, size_t n, time_t xtime);
 
 
-/* Views (from citadel.h) */
-#define        VIEW_BBS                0       /* Traditional Citadel BBS view */
-#define VIEW_MAILBOX           1       /* Mailbox summary */
-#define VIEW_ADDRESSBOOK       2       /* Address book view */
-#define VIEW_CALENDAR          3       /* Calendar view */
-#define VIEW_TASKS             4       /* Tasks view */
-#define VIEW_NOTES             5       /* Notes view */
-#define VIEW_WIKI              6       /* Wiki view */
+/** Views (from citadel.h) */
+#define        VIEW_BBS                0       /**< Traditional Citadel BBS view */
+#define VIEW_MAILBOX           1       /**< Mailbox summary */
+#define VIEW_ADDRESSBOOK       2       /**< Address book view */
+#define VIEW_CALENDAR          3       /**< Calendar view */
+#define VIEW_TASKS             4       /**< Tasks view */
+#define VIEW_NOTES             5       /**<  Notes view */
+#define VIEW_WIKI              6       /**<  Wiki view */
+#define VIEW_CALBRIEF          7       /**< Brief Calendar view */
 
 
 /* These should be empty, but we have them for testing */