From: Guus Sliepen Date: Sat, 27 Mar 2004 12:07:25 +0000 (+0000) Subject: Necessary for process.c. X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=7010b80e8be17b96c11e86cb9be81cafea46ff57 Necessary for process.c. --- diff --git a/tincd.h b/tincd.h new file mode 100644 index 00000000..b2e66206 --- /dev/null +++ b/tincd.h @@ -0,0 +1,43 @@ +/* + tincd.h -- tinc specific global variables and functions + + Copyright (C) 2003-2004 Guus Sliepen , + + This program is free software; you can redistribute it and/or modify + 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. + + This program is distributed in the hope that it will be useful, + 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. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + $Id +*/ + +#ifndef __TINCD_H__ +#define __TINCD_H__ + +#include "support/avl.h" + +extern char *tinc_confbase; +extern char *tinc_netname; +extern char *tinc_identname; +extern char *tinc_pidfilename; +extern char *tinc_logfilename; +extern char *tinc_cfgfilename; + +extern bool tinc_use_logfile; + +extern int tinc_argc; +extern char **tinc_argv; +extern avl_tree_t *tinc_cfg; + +extern bool remove_pid(const char *pidfilename); + +#endif