]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/sigevent.h
zebra, lib: fix the ZEBRA_INTERFACE_VRF_UPDATE zapi message
[mirror_frr.git] / lib / sigevent.h
index 20012affff3a75a8e0c265e29d64b6be0a2bec13..d4ab5741ac97c8fabc670814125211347c28a4c9 100644 (file)
@@ -1,4 +1,4 @@
-/* 
+/*
  * Quagga Signal handling header.
  *
  * Copyright (C) 2004 Paul Jakma.
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  * General Public License for more details.
  *
- * You should have received a copy of the GNU General Public License
- * along with Quagga; see the file COPYING.  If not, write to the Free
- * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.  
+ * You should have received a copy of the GNU General Public License along
+ * with this program; see the file COPYING; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 #ifndef _QUAGGA_SIGNAL_H
 #include <thread.h>
 
 #define QUAGGA_SIGNAL_TIMER_INTERVAL 2L
-#define Q_SIGC(sig) (sizeof(sig)/sizeof(sig[0]))
 
-struct quagga_signal_t
-{
-  int signal;                     /* signal number    */
-  void (*handler) (void);         /* handler to call  */
+struct quagga_signal_t {
+       int signal;         /* signal number    */
+       void (*handler)(void); /* handler to call  */
 
-  volatile sig_atomic_t caught;   /* private member   */
+       volatile sig_atomic_t caught; /* private member   */
 };
 
 /* initialise sigevent system
@@ -44,10 +41,10 @@ struct quagga_signal_t
  * - array of quagga_signal_t's describing signals to handle
  *   and handlers to use for each signal
  */
-void signal_init (struct thread_master *m, int sigc, 
-                         struct quagga_signal_t *signals);
+extern void signal_init(struct thread_master *m, int sigc,
+                       struct quagga_signal_t *signals);
 
 /* check whether there are signals to handle, process any found */
-int quagga_sigevent_process (void);
+extern int quagga_sigevent_process(void);
 
 #endif /* _QUAGGA_SIGNAL_H */