00001 /***************************************************************************** 00002 * 00003 * EPN_ICINGA.H - Embedded Perl Header File 00004 * 00005 * Copyright (c) 1999-2009 Ethan Galstad (egalstad@nagios.org) 00006 * Copyright (c) 2009-2011 Icinga Development Team (http://www.icinga.org) 00007 * 00008 * License: 00009 * 00010 * This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License version 2 as 00012 * published by the Free Software Foundation. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00022 * 00023 *****************************************************************************/ 00024 00025 /******** BEGIN EMBEDDED PERL INTERPRETER DECLARATIONS ********/ 00026 00027 #include <EXTERN.h> 00028 #include <perl.h> 00029 00030 #include <fcntl.h> 00031 #undef DEBUG /* epn-compiled Icinga spews just - this has a side effect of potentially disabling debug output on epn systems */ 00032 #undef ctime /* don't need perl's threaded version */ 00033 #undef printf /* can't use perl's printf until initialized */ 00034 00035 /* In perl.h (or friends) there is a macro that defines sighandler as Perl_sighandler, so we must #undef it so we can use our sighandler() function */ 00036 #undef sighandler 00037 00038 /* and we don't need perl's reentrant versions */ 00039 #undef localtime 00040 #undef getpwnam 00041 #undef getgrnam 00042 #undef strerror 00043 00044 #ifdef aTHX 00045 EXTERN_C void xs_init(pTHX); 00046 #else 00047 EXTERN_C void xs_init(void); 00048 #endif 00049 00050 /******** END EMBEDDED PERL INTERPRETER DECLARATIONS ********/