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

Diff for /src/usr.bin/tmux/tmux.h between version 1.667 and 1.668

version 1.667, 2016/10/16 17:55:14 version 1.668, 2016/10/16 19:04:05
Line 40 
Line 40 
   
 struct args;  struct args;
 struct client;  struct client;
 struct cmd_q;  struct cmdq_item;
 struct cmd_q_list;  struct cmdq_list;
 struct environ;  struct environ;
 struct input_ctx;  struct input_ctx;
 struct mode_key_cmdstr;  struct mode_key_cmdstr;
Line 1177 
Line 1177 
         CMD_FIND_SESSION,          CMD_FIND_SESSION,
 };  };
 struct cmd_find_state {  struct cmd_find_state {
         struct cmd_q            *cmdq;          struct cmdq_item        *item;
         int                      flags;          int                      flags;
         struct cmd_find_state   *current;          struct cmd_find_state   *current;
   
Line 1231 
Line 1231 
 };  };
   
 /* Command queue item type. */  /* Command queue item type. */
 enum cmd_q_type {  enum cmdq_type {
         CMD_Q_COMMAND,          CMDQ_COMMAND,
         CMD_Q_CALLBACK,          CMDQ_CALLBACK,
 };  };
   
 /* Command queue item. */  /* Command queue item. */
 typedef enum cmd_retval (*cmd_q_cb) (struct cmd_q *, void *);  typedef enum cmd_retval (*cmdq_cb) (struct cmdq_item *, void *);
 struct cmd_q {  struct cmdq_item {
         struct cmd_q_list       *queue;          struct cmdq_list        *queue;
         struct cmd_q            *next;          struct cmdq_item        *next;
   
         struct client           *client;          struct client           *client;
   
         enum cmd_q_type          type;          enum cmdq_type           type;
         u_int                    group;          u_int                    group;
   
         u_int                    number;          u_int                    number;
Line 1252 
Line 1252 
   
         const char              *hook;          const char              *hook;
         int                      flags;          int                      flags;
 #define CMD_Q_FIRED 0x1  #define CMDQ_FIRED 0x1
 #define CMD_Q_WAITING 0x2  #define CMDQ_WAITING 0x2
 #define CMD_Q_NOHOOKS 0x4  #define CMDQ_NOHOOKS 0x4
   
         struct cmd_list         *cmdlist;          struct cmd_list         *cmdlist;
         struct cmd              *cmd;          struct cmd              *cmd;
   
         cmd_q_cb                 cb;          cmdq_cb                  cb;
         void                    *data;          void                    *data;
   
         struct cmd_find_state    current;          struct cmd_find_state    current;
Line 1267 
Line 1267 
   
         struct mouse_event       mouse;          struct mouse_event       mouse;
   
         TAILQ_ENTRY(cmd_q)       entry;          TAILQ_ENTRY(cmdq_item)   entry;
 };  };
 TAILQ_HEAD(cmd_q_list, cmd_q);  TAILQ_HEAD(cmdq_list, cmdq_item);
   
 /* Command -c, -t or -s flags. */  /* Command -c, -t or -s flags. */
 enum cmd_entry_flag {  enum cmd_entry_flag {
Line 1316 
Line 1316 
 #define CMD_AFTERHOOK 0x4  #define CMD_AFTERHOOK 0x4
         int              flags;          int              flags;
   
         enum cmd_retval          (*exec)(struct cmd *, struct cmd_q *);          enum cmd_retval          (*exec)(struct cmd *, struct cmdq_item *);
 };  };
   
 /* Client connection. */  /* Client connection. */
 struct client {  struct client {
         struct tmuxpeer *peer;          struct tmuxpeer *peer;
         struct cmd_q_list queue;          struct cmdq_list queue;
   
         pid_t            pid;          pid_t            pid;
         int              fd;          int              fd;
Line 1510 
Line 1510 
 /* cfg.c */  /* cfg.c */
 extern int cfg_finished;  extern int cfg_finished;
 extern struct client *cfg_client;  extern struct client *cfg_client;
 void             start_cfg(void);  void    start_cfg(void);
 int              load_cfg(const char *, struct client *, struct cmd_q *, int);  int     load_cfg(const char *, struct client *, struct cmdq_item *, int);
 void             set_cfg_file(const char *);  void    set_cfg_file(const char *);
 void printflike(1, 2) cfg_add_cause(const char *, ...);  void printflike(1, 2) cfg_add_cause(const char *, ...);
 void             cfg_print_causes(struct cmd_q *);  void    cfg_print_causes(struct cmdq_item *);
 void             cfg_show_causes(struct session *);  void    cfg_show_causes(struct session *);
   
 /* paste.c */  /* paste.c */
 struct paste_buffer;  struct paste_buffer;
Line 1536 
Line 1536 
 #define FORMAT_STATUS 0x1  #define FORMAT_STATUS 0x1
 #define FORMAT_FORCE 0x2  #define FORMAT_FORCE 0x2
 struct format_tree;  struct format_tree;
 struct format_tree *format_create(struct cmd_q *, int);  struct format_tree *format_create(struct cmdq_item *, int);
 void             format_free(struct format_tree *);  void             format_free(struct format_tree *);
 void printflike(3, 4) format_add(struct format_tree *, const char *,  void printflike(3, 4) format_add(struct format_tree *, const char *,
                      const char *, ...);                       const char *, ...);
Line 1563 
Line 1563 
 struct hook     *hooks_find(struct hooks *, const char *);  struct hook     *hooks_find(struct hooks *, const char *);
 void printflike(4, 5) hooks_run(struct hooks *, struct client *,  void printflike(4, 5) hooks_run(struct hooks *, struct client *,
                     struct cmd_find_state *, const char *, ...);                      struct cmd_find_state *, const char *, ...);
 void printflike(4, 5) hooks_insert(struct hooks *, struct cmd_q *,  void printflike(4, 5) hooks_insert(struct hooks *, struct cmdq_item *,
                     struct cmd_find_state *, const char *, ...);                      struct cmd_find_state *, const char *, ...);
   
 /* mode-key.c */  /* mode-key.c */
Line 1729 
Line 1729 
                      char **);                       char **);
   
 /* cmd-find.c */  /* cmd-find.c */
 int              cmd_find_current(struct cmd_find_state *, struct cmd_q *,  int              cmd_find_current(struct cmd_find_state *, struct cmdq_item *,
                      int);                       int);
 int              cmd_find_target(struct cmd_find_state *,  int              cmd_find_target(struct cmd_find_state *,
                      struct cmd_find_state *, struct cmd_q *, const char *,                       struct cmd_find_state *, struct cmdq_item *, const char *,
                      enum cmd_find_type, int);                       enum cmd_find_type, int);
 struct client   *cmd_find_client(struct cmd_q *, const char *, int);  struct client   *cmd_find_client(struct cmdq_item *, const char *, int);
 void             cmd_find_clear_state(struct cmd_find_state *, struct cmd_q *,  void             cmd_find_clear_state(struct cmd_find_state *,
                      int);                       struct cmdq_item *, int);
 int              cmd_find_empty_state(struct cmd_find_state *);  int              cmd_find_empty_state(struct cmd_find_state *);
 int              cmd_find_valid_state(struct cmd_find_state *);  int              cmd_find_valid_state(struct cmd_find_state *);
 void             cmd_find_copy_state(struct cmd_find_state *,  void             cmd_find_copy_state(struct cmd_find_state *,
Line 1759 
Line 1759 
 void             cmd_free_argv(int, char **);  void             cmd_free_argv(int, char **);
 char            *cmd_stringify_argv(int, char **);  char            *cmd_stringify_argv(int, char **);
 struct cmd      *cmd_parse(int, char **, const char *, u_int, char **);  struct cmd      *cmd_parse(int, char **, const char *, u_int, char **);
 int              cmd_prepare_state(struct cmd *, struct cmd_q *);  int              cmd_prepare_state(struct cmd *, struct cmdq_item *);
 char            *cmd_print(struct cmd *);  char            *cmd_print(struct cmd *);
 int              cmd_mouse_at(struct window_pane *, struct mouse_event *,  int              cmd_mouse_at(struct window_pane *, struct mouse_event *,
                      u_int *, u_int *, int);                       u_int *, u_int *, int);
Line 1770 
Line 1770 
 extern const struct cmd_entry *cmd_table[];  extern const struct cmd_entry *cmd_table[];
   
 /* cmd-attach-session.c */  /* cmd-attach-session.c */
 enum cmd_retval  cmd_attach_session(struct cmd_q *, int, int, const char *,  enum cmd_retval  cmd_attach_session(struct cmdq_item *, int, int, const char *,
     int);                       int);
   
 /* cmd-list.c */  /* cmd-list.c */
 struct cmd_list *cmd_list_parse(int, char **, const char *, u_int, char **);  struct cmd_list *cmd_list_parse(int, char **, const char *, u_int, char **);
Line 1779 
Line 1779 
 char            *cmd_list_print(struct cmd_list *);  char            *cmd_list_print(struct cmd_list *);
   
 /* cmd-queue.c */  /* cmd-queue.c */
 struct cmd_q    *cmdq_get_command(struct cmd_list *, struct cmd_find_state *,  struct cmdq_item *cmdq_get_command(struct cmd_list *, struct cmd_find_state *,
                      struct mouse_event *, int);                       struct mouse_event *, int);
 struct cmd_q    *cmdq_get_callback(cmd_q_cb, void *);  struct cmdq_item *cmdq_get_callback(cmdq_cb, void *);
 void             cmdq_insert_after(struct cmd_q *, struct cmd_q *);  void             cmdq_insert_after(struct cmdq_item *, struct cmdq_item *);
 void             cmdq_append(struct client *, struct cmd_q *);  void             cmdq_append(struct client *, struct cmdq_item *);
 u_int            cmdq_next(struct client *);  u_int            cmdq_next(struct client *);
 void             cmdq_guard(struct cmd_q *, const char *, int);  void             cmdq_guard(struct cmdq_item *, const char *, int);
 void printflike(2, 3) cmdq_print(struct cmd_q *, const char *, ...);  void printflike(2, 3) cmdq_print(struct cmdq_item *, const char *, ...);
 void printflike(2, 3) cmdq_error(struct cmd_q *, const char *, ...);  void printflike(2, 3) cmdq_error(struct cmdq_item *, const char *, ...);
   
 /* cmd-string.c */  /* cmd-string.c */
 int     cmd_string_parse(const char *, struct cmd_list **, const char *,  int     cmd_string_parse(const char *, struct cmd_list **, const char *,

Legend:
Removed from v.1.667  
changed lines
  Added in v.1.668