[BACK]Return to channels.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/channels.h between version 1.12.2.1 and 1.12.2.2

version 1.12.2.1, 2000/06/12 02:37:32 version 1.12.2.2, 2000/09/01 18:23:18
Line 1 
Line 1 
 /* RCSID("$Id$"); */  /* RCSID("$OpenBSD$"); */
   
 #ifndef CHANNELS_H  #ifndef CHANNELS_H
 #define CHANNELS_H  #define CHANNELS_H
Line 21 
Line 21 
  * Data structure for channel data.  This is iniailized in channel_allocate   * Data structure for channel data.  This is iniailized in channel_allocate
  * and cleared in channel_free.   * and cleared in channel_free.
  */   */
   struct Channel;
   typedef struct Channel Channel;
   
 typedef void channel_callback_fn(int id, void *arg);  typedef void channel_callback_fn(int id, void *arg);
   typedef int channel_filter_fn(struct Channel *c, char *buf, int len);
   
 typedef struct Channel {  struct Channel {
         int     type;           /* channel type/state */          int     type;           /* channel type/state */
         int     self;           /* my own channel identifier */          int     self;           /* my own channel identifier */
         int     remote_id;      /* channel identifier for remote peer */          int     remote_id;      /* channel identifier for remote peer */
Line 61 
Line 65 
         void    *cb_arg;          void    *cb_arg;
         int     cb_event;          int     cb_event;
         channel_callback_fn     *dettach_user;          channel_callback_fn     *dettach_user;
 }       Channel;  
   
           /* filter */
           channel_filter_fn       *input_filter;
   };
   
 #define CHAN_EXTENDED_IGNORE            0  #define CHAN_EXTENDED_IGNORE            0
 #define CHAN_EXTENDED_READ              1  #define CHAN_EXTENDED_READ              1
 #define CHAN_EXTENDED_WRITE             2  #define CHAN_EXTENDED_WRITE             2
Line 73 
Line 80 
 void    channel_request_start(int id, char *service, int wantconfirm);  void    channel_request_start(int id, char *service, int wantconfirm);
 void    channel_register_callback(int id, int mtype, channel_callback_fn *fn, void *arg);  void    channel_register_callback(int id, int mtype, channel_callback_fn *fn, void *arg);
 void    channel_register_cleanup(int id, channel_callback_fn *fn);  void    channel_register_cleanup(int id, channel_callback_fn *fn);
   void    channel_register_filter(int id, channel_filter_fn *fn);
 void    channel_cancel_cleanup(int id);  void    channel_cancel_cleanup(int id);
 Channel *channel_lookup(int id);  Channel *channel_lookup(int id);
   

Legend:
Removed from v.1.12.2.1  
changed lines
  Added in v.1.12.2.2