X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Fsig_handler.h;h=82196188fd158ccf3a29b2c935462533a2975626;hp=a7779becb8e27fe005866c9ebe24f122e92535ca;hb=4d61c93845abce1e45c4a41562ecb3fa4e3bdcc3;hpb=b81b2c1954fe3e3317e6fa260c5ffdc9eeee966c diff --git a/src/sig_handler.h b/src/sig_handler.h index a7779be..8219618 100644 --- a/src/sig_handler.h +++ b/src/sig_handler.h @@ -15,13 +15,14 @@ * tunneling and relaying of packets of any protocol. * * - * Copyright (C) 2007-2008 Christian Pointner + * Copyright (C) 2007-2010 Christian Pointner * * This file is part of uAnytun. * * uAnytun is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. * * uAnytun is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -32,14 +33,11 @@ * along with uAnytun. If not, see . */ -#ifndef _SIG_HANDLER_H_ -#define _SIG_HANDLER_H_ +#ifndef UANYTUN_sig_handler_h_INCLUDED +#define UANYTUN_sig_handler_h_INCLUDED -#include - -extern volatile sig_atomic_t signal_exit; - -void signal_init(); -void handle_signal(int sig); +int signal_init(); +int signal_handle(); +void signal_stop(); #endif