]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
Completed the 'upload a file' dialog.
[citadel.git] / webcit / webcit.h
index 4aef6ac85daa42981c229ed348c2f04bc6ee9780..aa693a95c53df7091ccb581143ada0d14a1fc9a0 100644 (file)
@@ -122,11 +122,11 @@ extern locale_t wc_locales[];
 #define SLEEPING               180             /* TCP connection timeout */
 #define WEBCIT_TIMEOUT         900             /* WebCit session timeout */
 #define PORT_NUM               2000            /* port number to listen on */
-#define SERVER                 "WebCit v6.84"  /* who's in da house */
+#define SERVER                 "WebCit v7.05"  /* who's in da house */
 #define DEVELOPER_ID           0
 #define CLIENT_ID              4
-#define CLIENT_VERSION         684             /* This version of WebCit */
-#define MINIMUM_CIT_VERSION    684             /* min required Citadel ver. */
+#define CLIENT_VERSION         705             /* This version of WebCit */
+#define MINIMUM_CIT_VERSION    705             /* min required Citadel ver. */
 #define DEFAULT_HOST           "localhost"     /* Default Citadel server */
 #define DEFAULT_PORT           "504"
 #define LB                     (1)             /* Internal escape chars */
@@ -641,6 +641,9 @@ void end_ajax_response(void);
 void initialize_viewdefs(void);
 void initialize_axdefs(void);
 void list_all_rooms_by_floor(char *viewpref);
+void display_room_directory(void);
+void download_file(char *);
+void upload_file(void);
 
 #ifdef WEBCIT_WITH_CALENDAR_SERVICE
 void display_edit_task(void);
@@ -752,3 +755,9 @@ void http_datestring(char *buf, size_t n, time_t xtime);
 #define DEFAULT_HTTPAUTH_USER  ""
 #define DEFAULT_HTTPAUTH_PASS  ""
 
+
+/* Exit codes 101 through 109 are initialization failures so we don't want to
+ * just keep respawning indefinitely.
+ */
+#define WC_EXIT_BIND           101     /* Can't bind to the port */
+#define WC_EXIT_SSL            102     /* Can't initialize SSL */