www.usr.com/support/gpl/USR9107_release.1.4.tar.gz
[bcm963xx.git] / userapps / opensource / sshd / chansession.h
index b889b09..213c285 100755 (executable)
 
 #include "loginrec.h"
 #include "channel.h"
+#include "listener.h"
+
+struct exitinfo {
+
+       int exitpid; /* -1 if not exited */
+       int exitstatus;
+       int exitsignal;
+       int exitcore;
+};
 
 struct ChanSess {
 
@@ -38,16 +47,12 @@ struct ChanSess {
        int slave;
        unsigned char * tty;
        unsigned char * term;
-       unsigned int termw, termh, termc, termr; /* width, height, col, rows */
 
        /* exit details */
-       int exited;
-       int exitstatus;
-       int exitsignal;
-       unsigned char exitcore;
+       struct exitinfo exit;
        
 #ifndef DISABLE_X11FWD
-       int x11fd; /* set to -1 to indicate forwarding not established */
+       struct Listener * x11listener;
        int x11port;
        char * x11authprot;
        char * x11authcookie;
@@ -56,7 +61,7 @@ struct ChanSess {
 #endif
 
 #ifndef DISABLE_AGENTFWD
-       int agentfd;
+       struct Listener * agentlistener;
        char * agentfile;
        char * agentdir;
 #endif
@@ -68,16 +73,20 @@ struct ChildPid {
 };
 
 
-void newchansess(struct Channel * channel);
-void chansessionrequest(struct Channel * channel);
-void closechansess(struct Channel * channel);
-void chansessinitialise();
-void send_msg_chansess_exitstatus(struct Channel * channel,
-               struct ChanSess * chansess);
-void send_msg_chansess_exitsignal(struct Channel * channel,
-               struct ChanSess * chansess);
 void addnewvar(const char* param, const char* var);
 
+void cli_send_chansess_request();
+void cli_tty_cleanup();
+void cli_chansess_winchange();
+
+void svr_chansessinitialise();
+extern const struct ChanType svrchansess;
+
+struct SigMap {
+       int signal;
+       char* name;
+};
 
+extern const struct SigMap signames[];
 
 #endif /* _CHANSESSION_H_ */