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

Diff for /src/usr.bin/tmux/alerts.c between version 1.11 and 1.12

version 1.11, 2016/05/11 20:56:58 version 1.12, 2016/10/03 22:52:11
Line 22 
Line 22 
   
 #include "tmux.h"  #include "tmux.h"
   
 int     alerts_fired;  static int      alerts_fired;
   
 void    alerts_timer(int, short, void *);  static void     alerts_timer(int, short, void *);
 int     alerts_enabled(struct window *, int);  static int      alerts_enabled(struct window *, int);
 void    alerts_callback(int, short, void *);  static void     alerts_callback(int, short, void *);
 void    alerts_reset(struct window *);  static void     alerts_reset(struct window *);
   
 void    alerts_run_hook(struct session *, struct winlink *, int);  static void     alerts_run_hook(struct session *, struct winlink *, int);
 int     alerts_check_all(struct session *, struct winlink *);  static int      alerts_check_all(struct session *, struct winlink *);
 int     alerts_check_bell(struct session *, struct winlink *);  static int      alerts_check_bell(struct session *, struct winlink *);
 int     alerts_check_activity(struct session *, struct winlink *);  static int      alerts_check_activity(struct session *, struct winlink *);
 int     alerts_check_silence(struct session *, struct winlink *);  static int      alerts_check_silence(struct session *, struct winlink *);
 void    alerts_ring_bell(struct session *);  static void     alerts_ring_bell(struct session *);
   
 void  static void
 alerts_timer(__unused int fd, __unused short events, void *arg)  alerts_timer(__unused int fd, __unused short events, void *arg)
 {  {
         struct window   *w = arg;          struct window   *w = arg;
Line 46 
Line 46 
         alerts_queue(w, WINDOW_SILENCE);          alerts_queue(w, WINDOW_SILENCE);
 }  }
   
 void  static void
 alerts_callback(__unused int fd, __unused short events, __unused void *arg)  alerts_callback(__unused int fd, __unused short events, __unused void *arg)
 {  {
         struct window   *w;          struct window   *w;
Line 72 
Line 72 
         alerts_fired = 0;          alerts_fired = 0;
 }  }
   
 void  static void
 alerts_run_hook(struct session *s, struct winlink *wl, int flags)  alerts_run_hook(struct session *s, struct winlink *wl, int flags)
 {  {
         struct cmd_find_state    fs;          struct cmd_find_state    fs;
Line 88 
Line 88 
                 hooks_run(s->hooks, NULL, &fs, "alert-activity");                  hooks_run(s->hooks, NULL, &fs, "alert-activity");
 }  }
   
 int  static int
 alerts_check_all(struct session *s, struct winlink *wl)  alerts_check_all(struct session *s, struct winlink *wl)
 {  {
         int     alerts;          int     alerts;
Line 113 
Line 113 
                 alerts_check_all(s, wl);                  alerts_check_all(s, wl);
 }  }
   
 int  static int
 alerts_enabled(struct window *w, int flags)  alerts_enabled(struct window *w, int flags)
 {  {
         if (flags & WINDOW_BELL)          if (flags & WINDOW_BELL)
Line 138 
Line 138 
                 alerts_reset(w);                  alerts_reset(w);
 }  }
   
 void  static void
 alerts_reset(struct window *w)  alerts_reset(struct window *w)
 {  {
         struct timeval  tv;          struct timeval  tv;
Line 175 
Line 175 
         }          }
 }  }
   
 int  static int
 alerts_check_bell(struct session *s, struct winlink *wl)  alerts_check_bell(struct session *s, struct winlink *wl)
 {  {
         struct client   *c;          struct client   *c;
Line 218 
Line 218 
         return (WINDOW_BELL);          return (WINDOW_BELL);
 }  }
   
 int  static int
 alerts_check_activity(struct session *s, struct winlink *wl)  alerts_check_activity(struct session *s, struct winlink *wl)
 {  {
         struct client   *c;          struct client   *c;
Line 250 
Line 250 
         return (WINDOW_ACTIVITY);          return (WINDOW_ACTIVITY);
 }  }
   
 int  static int
 alerts_check_silence(struct session *s, struct winlink *wl)  alerts_check_silence(struct session *s, struct winlink *wl)
 {  {
         struct client   *c;          struct client   *c;
Line 282 
Line 282 
         return (WINDOW_SILENCE);          return (WINDOW_SILENCE);
 }  }
   
 void  static void
 alerts_ring_bell(struct session *s)  alerts_ring_bell(struct session *s)
 {  {
         struct client   *c;          struct client   *c;

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12