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  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 SERVICE_HASHSLOTS   4096
#define HOST_HASHSLOTS   1024
#define COMMAND_HASHSLOTS   256
#define TIMEPERIOD_HASHSLOTS   64
#define CONTACT_HASHSLOTS   128
#define CONTACTGROUP_HASHSLOTS   64
#define HOSTGROUP_HASHSLOTS   128
#define SERVICEGROUP_HASHSLOTS   128
#define HOSTDEPENDENCY_HASHSLOTS   1024
#define SERVICEDEPENDENCY_HASHSLOTS   2048
#define HOSTESCALATION_HASHSLOTS   1024
#define SERVICEESCALATION_HASHSLOTS   1024

Typedefs

typedef struct host_struct host
typedef struct service_struct service
typedef struct contact_struct contact
typedef struct objectlist_struct objectlist
typedef struct timerange_struct timerange
typedef struct daterange_struct daterange
typedef struct
timeperiodexclusion_struct 
timeperiodexclusion
typedef struct timeperiod_struct timeperiod
typedef struct
contactsmember_struct 
contactsmember
typedef struct contactgroup_struct contactgroup
typedef struct
contactgroupsmember_struct 
contactgroupsmember
typedef struct
customvariablesmember_struct 
customvariablesmember
typedef struct command_struct command
typedef struct
commandsmember_struct 
commandsmember
typedef struct
servicesmember_struct 
servicesmember
typedef struct hostsmember_struct hostsmember
typedef struct hostgroup_struct hostgroup
typedef struct servicegroup_struct servicegroup
typedef struct
serviceescalation_struct 
serviceescalation
typedef struct
servicedependency_struct 
servicedependency
typedef struct
hostescalation_struct 
hostescalation
typedef struct
hostdependency_struct 
hostdependency
typedef struct 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 *, 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 *)
int add_host_to_hashlist (host *)
int add_service_to_hashlist (service *)
int add_command_to_hashlist (command *)
int add_timeperiod_to_hashlist (timeperiod *)
int add_contact_to_hashlist (contact *)
int add_contactgroup_to_hashlist (contactgroup *)
int add_hostgroup_to_hashlist (hostgroup *)
int add_servicegroup_to_hashlist (servicegroup *)
int add_hostdependency_to_hashlist (hostdependency *)
int add_servicedependency_to_hashlist (servicedependency *)
int add_hostescalation_to_hashlist (hostescalation *)
int add_serviceescalation_to_hashlist (serviceescalation *)
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 *)
void move_first_service (void)
serviceget_next_service (void)
void move_first_host (void)
hostget_next_host (void)
void * get_host_cursor (void)
hostget_next_host_cursor (void *v_cursor)
void free_host_cursor (void *cursor)
void * get_next_N (void **hashchain, int hashslots, int *iterator, void *current, void *next)
hostescalationget_first_hostescalation_by_host (char *)
hostescalationget_next_hostescalation_by_host (char *, hostescalation *)
serviceescalationget_first_serviceescalation_by_service (char *, char *)
serviceescalationget_next_serviceescalation_by_service (char *, char *, serviceescalation *)
hostdependencyget_first_hostdependency_by_dependent_host (char *)
hostdependencyget_next_hostdependency_by_dependent_host (char *, hostdependency *)
servicedependencyget_first_servicedependency_by_dependent_service (char *, char *)
servicedependencyget_next_servicedependency_by_dependent_service (char *, char *, 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_HASHSLOTS   256

Definition at line 55 of file objects.h.

#define CONTACT_HASHSLOTS   128

Definition at line 57 of file objects.h.

#define CONTACTGROUP_HASHSLOTS   64

Definition at line 58 of file objects.h.

#define CURRENT_OBJECT_STRUCTURE_VERSION   307

Definition at line 40 of file objects.h.

#define HOST_HASHSLOTS   1024

Definition at line 54 of file objects.h.

#define HOSTDEPENDENCY_HASHSLOTS   1024

Definition at line 62 of file objects.h.

#define HOSTESCALATION_HASHSLOTS   1024

Definition at line 64 of file objects.h.

#define HOSTGROUP_HASHSLOTS   128

Definition at line 59 of file objects.h.

#define MAX_CONTACT_ADDRESSES   6

Definition at line 48 of file objects.h.

#define MAX_STATE_HISTORY_ENTRIES   21

Definition at line 47 of file objects.h.

#define SERVICE_HASHSLOTS   4096

Definition at line 53 of file objects.h.

#define SERVICEDEPENDENCY_HASHSLOTS   2048

Definition at line 63 of file objects.h.

#define SERVICEESCALATION_HASHSLOTS   1024

Definition at line 65 of file objects.h.

#define SERVICEGROUP_HASHSLOTS   128

Definition at line 60 of file objects.h.

#define TIMEPERIOD_HASHSLOTS   64

Definition at line 56 of file objects.h.


Typedef Documentation

typedef struct command_struct command

typedef struct contact_struct contact

Definition at line 73 of file objects.h.

typedef struct daterange_struct daterange

typedef struct host_struct host

Definition at line 71 of file objects.h.

typedef struct hostgroup_struct hostgroup

typedef struct objectlist_struct objectlist

typedef struct service_struct service

Definition at line 72 of file objects.h.

typedef struct timeperiod_struct timeperiod

typedef struct timerange_struct timerange


Function Documentation

hostsmember* add_child_link_to_host ( host ,
host  
)

command* add_command ( char *  ,
char *   
)

int add_command_to_hashlist ( command  ) 

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 *   
)

int add_contact_to_hashlist ( contact  ) 

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 *   
)

int add_contactgroup_to_hashlist ( contactgroup  ) 

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 *  ,
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 *   
)

int add_host_to_hashlist ( host  ) 

hostsmember* add_host_to_hostgroup ( hostgroup ,
char *   
)

int add_hostdependency_to_hashlist ( hostdependency  ) 

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

int add_hostescalation_to_hashlist ( hostescalation  ) 

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

int add_hostgroup_to_hashlist ( hostgroup  ) 

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 *   
)

int add_service_to_hashlist ( service  ) 

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   
)

int add_serviceescalation_to_hashlist ( serviceescalation  ) 

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

int add_servicegroup_to_hashlist ( servicegroup  ) 

timeperiod* add_timeperiod ( char *  ,
char *   
)

int add_timeperiod_to_hashlist ( timeperiod  ) 

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 *   ) 

void free_host_cursor ( void *  cursor  ) 

int free_object_data ( void   ) 

hostdependency* get_first_hostdependency_by_dependent_host ( char *   ) 

hostescalation* get_first_hostescalation_by_host ( char *   ) 

servicedependency* get_first_servicedependency_by_dependent_service ( char *  ,
char *   
)

serviceescalation* get_first_serviceescalation_by_service ( char *  ,
char *   
)

void* get_host_cursor ( void   ) 

host* get_next_host ( void   ) 

host* get_next_host_cursor ( void *  v_cursor  ) 

hostdependency* get_next_hostdependency_by_dependent_host ( char *  ,
hostdependency  
)

hostescalation* get_next_hostescalation_by_host ( char *  ,
hostescalation  
)

void* get_next_N ( void **  hashchain,
int  hashslots,
int *  iterator,
void *  current,
void *  next 
)

service* get_next_service ( void   ) 

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

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

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  
)

void move_first_host ( void   ) 

void move_first_service ( void   ) 

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   
)


Generated on Tue Apr 13 15:15:29 2010 for DNX by  doxygen 1.5.6