src/modules/exec/kill.h
31ccf6a2
 /*
  * Copyright (C) 2001-2003 FhG Fokus
  *
27642a08
  * This file is part of Kamailio, a free SIP server.
31ccf6a2
  *
27642a08
  * Kamailio is free software; you can redistribute it and/or modify
31ccf6a2
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  *
27642a08
  * Kamailio is distributed in the hope that it will be useful,
31ccf6a2
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
34ec1fc3
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
9e1ff448
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
31ccf6a2
  */
 
ffc671a1
 /*!
  * \file
  * \brief Exec module:: Kill process
34ec1fc3
  * \ingroup exec
ffc671a1
  * Module: \ref exec
  */
 
31ccf6a2
 
 #ifndef _KILL_H
 #define _KILL_H
 
34ec1fc3
 struct timer_link
 {
31ccf6a2
 	struct timer_link *next_tl;
 	struct timer_link *prev_tl;
 	volatile unsigned int time_out;
 	int pid;
 };
 
 struct timer_list
 {
34ec1fc3
 	struct timer_link first_tl;
 	struct timer_link last_tl;
31ccf6a2
 };
 
 extern unsigned int time_to_kill;
 
5ddbf042
 void destroy_kill(void);
 int initialize_kill(void);
34ec1fc3
 int schedule_to_kill(int pid);
31ccf6a2
 
 #endif