Grabbed a chunk of code out of citserver.c cmd_term() and used it to create
[citadel.git] / citadel / context.h
index 3754a20be3d28e2f005cb7fc835a5fcd34d8d660..ecf08a0adb84bb010e7e4307bd97a67195670554 100644 (file)
@@ -150,5 +150,10 @@ void dead_session_purge(int force);
 void BumpNewMailCounter(long) __attribute__ ((deprecated));
 
 void terminate_idle_sessions(void);
-
+int CtdlTerminateOtherSession (int session_num);
+/* bits returned by CtdlTerminateOtherSession */
+#define TERM_FOUND     0x01
+#define TERM_ALLOWED   0x02
+#define TERM_KILLED    0x03
+#define TERM_NOTALLOWED -1
 #endif /* CONTEXT_H */