include/objects.h File Reference

#include "config.h"
#include "common.h"

Go to the source code of this file.

Data Structures

struct  objectlist_struct
struct  timerange_struct
struct  daterange_struct
struct  timeperiodexclusion_struct
struct  timeperiod_struct
struct  contactsmember_struct
struct  contactgroup_struct
struct  contactgroupsmember_struct
struct  customvariablesmember_struct
struct  command_struct
struct  commandsmember_struct
struct  contact_struct
struct  servicesmember_struct
struct  hostsmember_struct
struct  hostgroup_struct
struct  host_struct
struct  servicegroup_struct
struct  service_struct
struct  escalation_condition_struct
struct  serviceescalation_struct
struct  servicedependency_struct
struct  hostescalation_struct
struct  hostdependency_struct
struct  host_cursor_struct

Defines

#define CURRENT_OBJECT_STRUCTURE_VERSION   307
#define MAX_STATE_HISTORY_ENTRIES   21
#define MAX_CONTACT_ADDRESSES   6
#define NUM_OBJECT_SKIPLISTS   12
#define HOST_SKIPLIST   0
#define SERVICE_SKIPLIST   1
#define COMMAND_SKIPLIST   2
#define TIMEPERIOD_SKIPLIST   3
#define CONTACT_SKIPLIST   4
#define CONTACTGROUP_SKIPLIST   5
#define HOSTGROUP_SKIPLIST   6
#define SERVICEGROUP_SKIPLIST   7
#define HOSTDEPENDENCY_SKIPLIST   8
#define SERVICEDEPENDENCY_SKIPLIST   9
#define HOSTESCALATION_SKIPLIST   10
#define SERVICEESCALATION_SKIPLIST   11
#define VOLATILE_WITH_RENOTIFICATION_INTERVAL   2
#define EC_CONNECTOR_NO   0
#define EC_CONNECTOR_OR   1
#define EC_CONNECTOR_AND   2

Typedefs

typedef host_struct host
typedef service_struct service
typedef contact_struct contact
typedef objectlist_struct objectlist
typedef timerange_struct timerange
typedef daterange_struct daterange
typedef timeperiodexclusion_struct timeperiodexclusion
typedef timeperiod_struct timeperiod
typedef contactsmember_struct contactsmember
typedef contactgroup_struct contactgroup
typedef contactgroupsmember_struct contactgroupsmember
typedef customvariablesmember_struct customvariablesmember
typedef command_struct command
typedef commandsmember_struct commandsmember
typedef servicesmember_struct servicesmember
typedef hostsmember_struct hostsmember
typedef hostgroup_struct hostgroup
typedef servicegroup_struct servicegroup
typedef escalation_condition_struct escalation_condition
typedef serviceescalation_struct serviceescalation
typedef servicedependency_struct servicedependency
typedef hostescalation_struct hostescalation
typedef hostdependency_struct hostdependency
typedef host_cursor_struct host_cursor

Functions

int read_object_config_data (char *, int, int, int)
contactadd_contact (char *, char *, char *, char *, char **, char *, char *, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int)
commandsmemberadd_service_notification_command_to_contact (contact *, char *)
commandsmemberadd_host_notification_command_to_contact (contact *, char *)
customvariablesmemberadd_custom_variable_to_contact (contact *, char *, char *)
hostadd_host (char *, char *, char *, char *, char *, char *, int, double, double, int, int, int, int, int, int, double, double, char *, int, char *, int, int, char *, int, int, double, double, int, int, int, int, int, int, int, int, char *, int, int, char *, char *, char *, char *, char *, char *, char *, int, int, int, double, double, double, int, int, int, int, int)
hostsmemberadd_parent_host_to_host (host *, char *)
hostsmemberadd_child_link_to_host (host *, host *)
contactgroupsmemberadd_contactgroup_to_host (host *, char *)
contactsmemberadd_contact_to_host (host *, char *)
customvariablesmemberadd_custom_variable_to_host (host *, char *, char *)
timeperiodadd_timeperiod (char *, char *)
timeperiodexclusionadd_exclusion_to_timeperiod (timeperiod *, char *)
timerangeadd_timerange_to_timeperiod (timeperiod *, int, unsigned long, unsigned long)
daterangeadd_exception_to_timeperiod (timeperiod *, int, int, int, int, int, int, int, int, int, int, int, int)
timerangeadd_timerange_to_daterange (daterange *, unsigned long, unsigned long)
hostgroupadd_hostgroup (char *, char *, char *, char *, char *)
hostsmemberadd_host_to_hostgroup (hostgroup *, char *)
servicegroupadd_servicegroup (char *, char *, char *, char *, char *)
servicesmemberadd_service_to_servicegroup (servicegroup *, char *, char *)
contactgroupadd_contactgroup (char *, char *)
contactsmemberadd_contact_to_contactgroup (contactgroup *, char *)
commandadd_command (char *, char *)
serviceadd_service (char *, char *, char *, char *, int, int, int, int, double, double, double, double, char *, int, int, int, int, int, int, int, int, char *, int, char *, int, int, double, double, int, int, int, int, int, int, int, int, int, int, char *, int, int, char *, char *, char *, char *, char *, int, int, int)
contactgroupsmemberadd_contactgroup_to_service (service *, char *)
contactsmemberadd_contact_to_service (service *, char *)
serviceescalationadd_serviceescalation (char *, char *, int, int, double, char *, int, int, int, int)
contactgroupsmemberadd_contactgroup_to_serviceescalation (serviceescalation *, char *)
contactsmemberadd_contact_to_serviceescalation (serviceescalation *, char *)
customvariablesmemberadd_custom_variable_to_service (service *, char *, char *)
servicedependencyadd_service_dependency (char *, char *, char *, char *, int, int, int, int, int, int, int, char *)
hostdependencyadd_host_dependency (char *, char *, int, int, int, int, int, int, char *)
hostescalationadd_hostescalation (char *, int, int, double, char *, int, int, int)
contactsmemberadd_contact_to_hostescalation (hostescalation *, char *)
contactgroupsmemberadd_contactgroup_to_hostescalation (hostescalation *, char *)
contactsmemberadd_contact_to_object (contactsmember **, char *)
customvariablesmemberadd_custom_variable_to_object (customvariablesmember **, char *, char *)
servicesmemberadd_service_link_to_host (host *, service *)
escalation_conditionadd_serviceescalation_condition (serviceescalation *, escalation_condition *, char *, char *, int, int, int, int, int, int, int)
escalation_conditionadd_hostescalation_condition (hostescalation *, escalation_condition *, char *, char *, int, int, int, int, int, int, int)
int init_object_skiplists (void)
int free_object_skiplists (void)
int skiplist_compare_text (const char *val1a, const char *val1b, const char *val2a, const char *val2b)
int skiplist_compare_host (void *a, void *b)
int skiplist_compare_service (void *a, void *b)
int skiplist_compare_command (void *a, void *b)
int skiplist_compare_timeperiod (void *a, void *b)
int skiplist_compare_contact (void *a, void *b)
int skiplist_compare_contactgroup (void *a, void *b)
int skiplist_compare_hostgroup (void *a, void *b)
int skiplist_compare_servicegroup (void *a, void *b)
int skiplist_compare_hostescalation (void *a, void *b)
int skiplist_compare_serviceescalation (void *a, void *b)
int skiplist_compare_hostdependency (void *a, void *b)
int skiplist_compare_servicedependency (void *a, void *b)
int get_host_count (void)
int get_service_count (void)
timeperiodfind_timeperiod (char *)
hostfind_host (char *)
hostgroupfind_hostgroup (char *)
servicegroupfind_servicegroup (char *)
contactfind_contact (char *)
contactgroupfind_contactgroup (char *)
commandfind_command (char *)
servicefind_service (char *, char *)
hostescalationget_first_hostescalation_by_host (char *, void **)
hostescalationget_next_hostescalation_by_host (char *, void **)
serviceescalationget_first_serviceescalation_by_service (char *, char *, void **)
serviceescalationget_next_serviceescalation_by_service (char *, char *, void **)
hostdependencyget_first_hostdependency_by_dependent_host (char *, void **)
hostdependencyget_next_hostdependency_by_dependent_host (char *, void **)
servicedependencyget_first_servicedependency_by_dependent_service (char *, char *, void **)
servicedependencyget_next_servicedependency_by_dependent_service (char *, char *, void **)
int add_servicedependency_to_hashlist (servicedependency *)
int is_host_immediate_child_of_host (host *, host *)
int is_host_primary_immediate_child_of_host (host *, host *)
int is_host_immediate_parent_of_host (host *, host *)
int is_host_member_of_hostgroup (hostgroup *, host *)
int is_host_member_of_servicegroup (servicegroup *, host *)
int is_service_member_of_servicegroup (servicegroup *, service *)
int is_contact_member_of_contactgroup (contactgroup *, contact *)
int is_contact_for_hostgroup (hostgroup *, contact *)
int is_contact_for_servicegroup (servicegroup *, contact *)
int is_contact_for_host (host *, contact *)
int is_escalated_contact_for_host (host *, contact *)
int is_contact_for_service (service *, contact *)
int is_escalated_contact_for_service (service *, contact *)
int number_of_immediate_child_hosts (host *)
int number_of_total_child_hosts (host *)
int number_of_immediate_parent_hosts (host *)
int number_of_total_parent_hosts (host *)
int free_object_data (void)


Define Documentation

#define COMMAND_SKIPLIST   2

#define CONTACT_SKIPLIST   4

#define CONTACTGROUP_SKIPLIST   5

#define CURRENT_OBJECT_STRUCTURE_VERSION   307

#define EC_CONNECTOR_AND   2

#define EC_CONNECTOR_NO   0

#define EC_CONNECTOR_OR   1

#define HOST_SKIPLIST   0

#define HOSTDEPENDENCY_SKIPLIST   8

#define HOSTESCALATION_SKIPLIST   10

#define HOSTGROUP_SKIPLIST   6

#define MAX_CONTACT_ADDRESSES   6

#define MAX_STATE_HISTORY_ENTRIES   21

#define NUM_OBJECT_SKIPLISTS   12

#define SERVICE_SKIPLIST   1

#define SERVICEDEPENDENCY_SKIPLIST   9

#define SERVICEESCALATION_SKIPLIST   11

#define SERVICEGROUP_SKIPLIST   7

#define TIMEPERIOD_SKIPLIST   3

#define VOLATILE_WITH_RENOTIFICATION_INTERVAL   2


Typedef Documentation

typedef struct command_struct command

typedef struct commandsmember_struct commandsmember

typedef struct contact_struct contact

typedef struct contactgroup_struct contactgroup

typedef struct contactgroupsmember_struct contactgroupsmember

typedef struct contactsmember_struct contactsmember

typedef struct customvariablesmember_struct customvariablesmember

typedef struct daterange_struct daterange

typedef struct escalation_condition_struct escalation_condition

typedef struct host_struct host

typedef struct host_cursor_struct host_cursor

typedef struct hostdependency_struct hostdependency

typedef struct hostescalation_struct hostescalation

typedef struct hostgroup_struct hostgroup

typedef struct hostsmember_struct hostsmember

typedef struct objectlist_struct objectlist

typedef struct service_struct service

typedef struct servicedependency_struct servicedependency

typedef struct serviceescalation_struct serviceescalation

typedef struct servicegroup_struct servicegroup

typedef struct servicesmember_struct servicesmember

typedef struct timeperiod_struct timeperiod

typedef struct timeperiodexclusion_struct timeperiodexclusion

typedef struct timerange_struct timerange


Function Documentation

hostsmember* add_child_link_to_host ( host ,
host  
)

command* add_command ( char *  ,
char *   
)

contact* add_contact ( char *  ,
char *  ,
char *  ,
char *  ,
char **  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

contactsmember* add_contact_to_contactgroup ( contactgroup ,
char *   
)

contactsmember* add_contact_to_host ( host ,
char *   
)

contactsmember* add_contact_to_hostescalation ( hostescalation ,
char *   
)

contactsmember* add_contact_to_object ( contactsmember **  ,
char *   
)

contactsmember* add_contact_to_service ( service ,
char *   
)

contactsmember* add_contact_to_serviceescalation ( serviceescalation ,
char *   
)

contactgroup* add_contactgroup ( char *  ,
char *   
)

contactgroupsmember* add_contactgroup_to_host ( host ,
char *   
)

contactgroupsmember* add_contactgroup_to_hostescalation ( hostescalation ,
char *   
)

contactgroupsmember* add_contactgroup_to_service ( service ,
char *   
)

contactgroupsmember* add_contactgroup_to_serviceescalation ( serviceescalation ,
char *   
)

customvariablesmember* add_custom_variable_to_contact ( contact ,
char *  ,
char *   
)

customvariablesmember* add_custom_variable_to_host ( host ,
char *  ,
char *   
)

customvariablesmember* add_custom_variable_to_object ( customvariablesmember **  ,
char *  ,
char *   
)

customvariablesmember* add_custom_variable_to_service ( service ,
char *  ,
char *   
)

daterange* add_exception_to_timeperiod ( timeperiod ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

timeperiodexclusion* add_exclusion_to_timeperiod ( timeperiod ,
char *   
)

host* add_host ( char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
int  ,
double  ,
double  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
double  ,
double  ,
char *  ,
int  ,
char *  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
double  ,
double  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
double  ,
double  ,
double  ,
int  ,
int  ,
int  ,
int  ,
int   
)

hostdependency* add_host_dependency ( char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *   
)

commandsmember* add_host_notification_command_to_contact ( contact ,
char *   
)

hostsmember* add_host_to_hostgroup ( hostgroup ,
char *   
)

hostescalation* add_hostescalation ( char *  ,
int  ,
int  ,
double  ,
char *  ,
int  ,
int  ,
int   
)

escalation_condition* add_hostescalation_condition ( hostescalation ,
escalation_condition ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

hostgroup* add_hostgroup ( char *  ,
char *  ,
char *  ,
char *  ,
char *   
)

hostsmember* add_parent_host_to_host ( host ,
char *   
)

service* add_service ( char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
double  ,
double  ,
double  ,
double  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
char *  ,
int  ,
int  ,
double  ,
double  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *  ,
int  ,
int  ,
char *  ,
char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int  ,
int   
)

servicedependency* add_service_dependency ( char *  ,
char *  ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *   
)

servicesmember* add_service_link_to_host ( host ,
service  
)

commandsmember* add_service_notification_command_to_contact ( contact ,
char *   
)

servicesmember* add_service_to_servicegroup ( servicegroup ,
char *  ,
char *   
)

int add_servicedependency_to_hashlist ( servicedependency  ) 

serviceescalation* add_serviceescalation ( char *  ,
char *  ,
int  ,
int  ,
double  ,
char *  ,
int  ,
int  ,
int  ,
int   
)

escalation_condition* add_serviceescalation_condition ( serviceescalation ,
escalation_condition ,
char *  ,
char *  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int   
)

servicegroup* add_servicegroup ( char *  ,
char *  ,
char *  ,
char *  ,
char *   
)

timeperiod* add_timeperiod ( char *  ,
char *   
)

timerange* add_timerange_to_daterange ( daterange ,
unsigned  long,
unsigned  long 
)

timerange* add_timerange_to_timeperiod ( timeperiod ,
int  ,
unsigned  long,
unsigned  long 
)

command* find_command ( char *   ) 

contact* find_contact ( char *   ) 

contactgroup* find_contactgroup ( char *   ) 

host* find_host ( char *   ) 

hostgroup* find_hostgroup ( char *   ) 

service* find_service ( char *  ,
char *   
)

servicegroup* find_servicegroup ( char *   ) 

timeperiod* find_timeperiod ( char *   ) 

int free_object_data ( void   ) 

int free_object_skiplists ( void   ) 

hostdependency* get_first_hostdependency_by_dependent_host ( char *  ,
void **   
)

hostescalation* get_first_hostescalation_by_host ( char *  ,
void **   
)

servicedependency* get_first_servicedependency_by_dependent_service ( char *  ,
char *  ,
void **   
)

serviceescalation* get_first_serviceescalation_by_service ( char *  ,
char *  ,
void **   
)

int get_host_count ( void   ) 

hostdependency* get_next_hostdependency_by_dependent_host ( char *  ,
void **   
)

hostescalation* get_next_hostescalation_by_host ( char *  ,
void **   
)

servicedependency* get_next_servicedependency_by_dependent_service ( char *  ,
char *  ,
void **   
)

serviceescalation* get_next_serviceescalation_by_service ( char *  ,
char *  ,
void **   
)

int get_service_count ( void   ) 

int init_object_skiplists ( void   ) 

int is_contact_for_host ( host ,
contact  
)

int is_contact_for_hostgroup ( hostgroup ,
contact  
)

int is_contact_for_service ( service ,
contact  
)

int is_contact_for_servicegroup ( servicegroup ,
contact  
)

int is_contact_member_of_contactgroup ( contactgroup ,
contact  
)

int is_escalated_contact_for_host ( host ,
contact  
)

int is_escalated_contact_for_service ( service ,
contact  
)

int is_host_immediate_child_of_host ( host ,
host  
)

int is_host_immediate_parent_of_host ( host ,
host  
)

int is_host_member_of_hostgroup ( hostgroup ,
host  
)

int is_host_member_of_servicegroup ( servicegroup ,
host  
)

int is_host_primary_immediate_child_of_host ( host ,
host  
)

int is_service_member_of_servicegroup ( servicegroup ,
service  
)

int number_of_immediate_child_hosts ( host  ) 

int number_of_immediate_parent_hosts ( host  ) 

int number_of_total_child_hosts ( host  ) 

int number_of_total_parent_hosts ( host  ) 

int read_object_config_data ( char *  ,
int  ,
int  ,
int   
)

int skiplist_compare_command ( void *  a,
void *  b 
)

int skiplist_compare_contact ( void *  a,
void *  b 
)

int skiplist_compare_contactgroup ( void *  a,
void *  b 
)

int skiplist_compare_host ( void *  a,
void *  b 
)

int skiplist_compare_hostdependency ( void *  a,
void *  b 
)

int skiplist_compare_hostescalation ( void *  a,
void *  b 
)

int skiplist_compare_hostgroup ( void *  a,
void *  b 
)

int skiplist_compare_service ( void *  a,
void *  b 
)

int skiplist_compare_servicedependency ( void *  a,
void *  b 
)

int skiplist_compare_serviceescalation ( void *  a,
void *  b 
)

int skiplist_compare_servicegroup ( void *  a,
void *  b 
)

int skiplist_compare_text ( const char *  val1a,
const char *  val1b,
const char *  val2a,
const char *  val2b 
)

int skiplist_compare_timeperiod ( void *  a,
void *  b 
)


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