Fixed the bug that prevented DOWN from working properly.
[citadel.git] / citadel / context.h
1 /* $Id: sysdep_decls.h 7265 2009-03-25 23:18:46Z dothebart $ */
2
3 #ifndef CONTEXT_H
4 #define CONTEXT_H
5
6 #include <stdarg.h>
7 #include "sysdep.h"
8 #include "server.h"
9 #include "sysdep_decls.h"
10 #include "threads.h"
11
12
13 extern citthread_key_t MyConKey;                        /* TSD key for MyContext() */
14 extern int num_sessions;
15 extern struct CitContext masterCC;
16
17 struct CitContext *MyContext (void);
18 void RemoveContext (struct CitContext *);
19 struct CitContext *CreateNewContext (void);
20 void context_cleanup(void);
21 void kill_session (int session_to_kill);
22 INLINE void become_session(struct CitContext *which_con);
23 void InitializeMasterCC(void);
24 void dead_session_purge(int force);
25
26
27
28 #endif /* CONTEXT_H */