-/*
+/*
* 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
* - 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 */