xdata/xdddefault.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  *
00003  * XDDDEFAULT.H - Header file for default scheduled downtime data routines
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 #ifndef _XDDDEFAULT_H
00026 #define _XDDDEFAULT_H
00027 
00028 #define XDDDEFAULT_NO_DATA          0
00029 #define XDDDEFAULT_INFO_DATA        1
00030 #define XDDDEFAULT_HOST_DATA        2
00031 #define XDDDEFAULT_SERVICE_DATA     3
00032 
00033 #ifdef NSCORE
00034 int xdddefault_initialize_downtime_data(char *);
00035 int xdddefault_validate_downtime_data(void);
00036 int xdddefault_cleanup_downtime_data(char *);
00037 
00038 int xdddefault_save_downtime_data(void);
00039 int xdddefault_add_new_host_downtime(char *,time_t,char *,char *,time_t,time_t,int,unsigned long,unsigned long,unsigned long *,int);
00040 int xdddefault_add_new_service_downtime(char *,char *,time_t,char *,char *,time_t,time_t,int,unsigned long,unsigned long,unsigned long *,int);
00041 
00042 int xdddefault_delete_host_downtime(unsigned long);
00043 int xdddefault_delete_service_downtime(unsigned long);
00044 int xdddefault_delete_downtime(int,unsigned long);
00045 #endif
00046 
00047 #endif

Generated on Wed Mar 30 17:22:22 2011 for icinga-core by  doxygen 1.4.7