]> code.citadel.org Git - citadel.git/blobdiff - citadel/sysdep_decls.h
* There is now a dedicated thread for doing database checkpoints.
[citadel.git] / citadel / sysdep_decls.h
index 94d98d5dad0379f997429cba6f009de56533dc80..c805176a0f5a5d3cf8ad0da10e11297243347585 100644 (file)
@@ -41,6 +41,10 @@ void lprintf (enum LogLevel loglevel, const char *format, ...);
 void cprintf (const char *format, ...);
 #endif
 
+extern pthread_key_t MyConKey;                 /* TSD key for MyContext() */
+
+extern int enable_syslog;
+
 void init_sysdep (void);
 void begin_critical_section (int which_one);
 void end_critical_section (int which_one);
@@ -55,7 +59,7 @@ void flush_output(void);
 void client_write (char *buf, int nbytes);
 int client_read_to (char *buf, int bytes, int timeout);
 int client_read (char *buf, int bytes);
-int client_gets (char *buf);
+int client_getln (char *buf, int maxbytes);
 void sysdep_master_cleanup (void);
 void kill_session (int session_to_kill);
 void *sd_context_loop (struct CitContext *con);
@@ -64,7 +68,6 @@ void cmd_nset (char *cmdbuf);
 int convert_login (char *NameToConvert);
 void *worker_thread (void *arg);
 void become_session(struct CitContext *which_con);
-void CtdlRedirectOutput(FILE *fp, int sock);
 void InitializeMasterCC(void);
 void init_master_fdset(void);
 void create_worker(void);
@@ -94,3 +97,7 @@ void tracked_free(void *ptr);
 char *tracked_strdup(const char *s, char *file, int line);
 void dump_heap(void);
 #endif
+
+void create_maintenance_threads(void);
+extern pthread_t indexer_thread_tid;
+extern pthread_t checkpoint_thread_tid;