xdata/xodtemplate.h File Reference

Go to the source code of this file.

Data Structures

struct  xodtemplate_customvariablesmember_struct
struct  xodtemplate_daterange_struct
struct  xodtemplate_timeperiod_struct
struct  xodtemplate_command_struct
struct  xodtemplate_contact_struct
struct  xodtemplate_contactgroup_struct
struct  xodtemplate_host_struct
struct  xodtemplate_hostgroup_struct
struct  xodtemplate_service_struct
struct  xodtemplate_servicegroup_struct
struct  xodtemplate_escalation_condition_struct
struct  xodtemplate_servicedependency_struct
struct  xodtemplate_serviceescalation_struct
struct  xodtemplate_hostdependency_struct
struct  xodtemplate_hostescalation_struct
struct  xodtemplate_hostextinfo_struct
struct  xodtemplate_serviceextinfo_struct
struct  xodtemplate_contactlist_struct
struct  xodtemplate_hostlist_struct
struct  xodtemplate_servicelist_struct
struct  xodtemplate_memberlist_struct
struct  xodtemplate_service_cursor_struct

Defines

#define XODTEMPLATE_NULL   "null"
#define MAX_XODTEMPLATE_INPUT_BUFFER   1024
#define MAX_XODTEMPLATE_CONTACT_ADDRESSES   6
#define XODTEMPLATE_NONE   0
#define XODTEMPLATE_TIMEPERIOD   1
#define XODTEMPLATE_COMMAND   2
#define XODTEMPLATE_CONTACT   3
#define XODTEMPLATE_CONTACTGROUP   4
#define XODTEMPLATE_HOST   5
#define XODTEMPLATE_HOSTGROUP   6
#define XODTEMPLATE_SERVICE   7
#define XODTEMPLATE_SERVICEDEPENDENCY   8
#define XODTEMPLATE_HOSTGROUPESCALATION   9
#define XODTEMPLATE_SERVICEESCALATION   10
#define XODTEMPLATE_HOSTESCALATION   11
#define XODTEMPLATE_HOSTDEPENDENCY   12
#define XODTEMPLATE_HOSTEXTINFO   13
#define XODTEMPLATE_SERVICEEXTINFO   14
#define XODTEMPLATE_SERVICEGROUP   15
#define NUM_XOBJECT_SKIPLISTS   15
#define X_HOST_SKIPLIST   1
#define X_SERVICE_SKIPLIST   2
#define X_COMMAND_SKIPLIST   3
#define X_TIMEPERIOD_SKIPLIST   4
#define X_CONTACT_SKIPLIST   5
#define X_CONTACTGROUP_SKIPLIST   6
#define X_HOSTGROUP_SKIPLIST   7
#define X_SERVICEGROUP_SKIPLIST   8
#define X_HOSTDEPENDENCY_SKIPLIST   9
#define X_SERVICEDEPENDENCY_SKIPLIST   10
#define X_HOSTESCALATION_SKIPLIST   11
#define X_SERVICEESCALATION_SKIPLIST   12
#define X_HOSTEXTINFO_SKIPLIST   13
#define X_SERVICEEXTINFO_SKIPLIST   14

Typedefs

typedef xodtemplate_customvariablesmember_struct xodtemplate_customvariablesmember
typedef xodtemplate_daterange_struct xodtemplate_daterange
typedef xodtemplate_timeperiod_struct xodtemplate_timeperiod
typedef xodtemplate_command_struct xodtemplate_command
typedef xodtemplate_contact_struct xodtemplate_contact
typedef xodtemplate_contactgroup_struct xodtemplate_contactgroup
typedef xodtemplate_host_struct xodtemplate_host
typedef xodtemplate_hostgroup_struct xodtemplate_hostgroup
typedef xodtemplate_service_struct xodtemplate_service
typedef xodtemplate_servicegroup_struct xodtemplate_servicegroup
typedef xodtemplate_escalation_condition_struct xodtemplate_escalation_condition
typedef xodtemplate_servicedependency_struct xodtemplate_servicedependency
typedef xodtemplate_serviceescalation_struct xodtemplate_serviceescalation
typedef xodtemplate_hostdependency_struct xodtemplate_hostdependency
typedef xodtemplate_hostescalation_struct xodtemplate_hostescalation
typedef xodtemplate_hostextinfo_struct xodtemplate_hostextinfo
typedef xodtemplate_serviceextinfo_struct xodtemplate_serviceextinfo
typedef xodtemplate_contactlist_struct xodtemplate_contactlist
typedef xodtemplate_hostlist_struct xodtemplate_hostlist
typedef xodtemplate_servicelist_struct xodtemplate_servicelist
typedef xodtemplate_memberlist_struct xodtemplate_memberlist
typedef xodtemplate_service_cursor_struct xodtemplate_service_cursor

Functions

int xodtemplate_read_config_data (char *, int, int, int)
int xodtemplate_grab_config_info (char *)
int xodtemplate_process_config_file (char *, int)
int xodtemplate_process_config_dir (char *, int)
int xodtemplate_begin_object_definition (char *, int, int, int)
int xodtemplate_add_object_property (char *, int)
int xodtemplate_end_object_definition (int)
int xodtemplate_parse_timeperiod_directive (xodtemplate_timeperiod *, char *, char *)
xodtemplate_daterangexodtemplate_add_exception_to_timeperiod (xodtemplate_timeperiod *, int, int, int, int, int, int, int, int, int, int, int, int, char *)
int xodtemplate_get_month_from_string (char *, int *)
int xodtemplate_get_weekday_from_string (char *, int *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_host (xodtemplate_host *, char *, char *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_service (xodtemplate_service *, char *, char *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_contact (xodtemplate_contact *, char *, char *)
xodtemplate_customvariablesmemberxodtemplate_add_custom_variable_to_object (xodtemplate_customvariablesmember **, char *, char *)
int xodtemplate_register_objects (void)
int xodtemplate_free_memory (void)
int xodtemplate_register_timeperiod (xodtemplate_timeperiod *)
int xodtemplate_get_time_ranges (char *, unsigned long *, unsigned long *)
int xodtemplate_register_command (xodtemplate_command *)
int xodtemplate_register_contactgroup (xodtemplate_contactgroup *)
int xodtemplate_register_hostgroup (xodtemplate_hostgroup *)
int xodtemplate_register_servicegroup (xodtemplate_servicegroup *)
int xodtemplate_register_servicedependency (xodtemplate_servicedependency *)
int xodtemplate_register_serviceescalation (xodtemplate_serviceescalation *)
int xodtemplate_register_contact (xodtemplate_contact *)
int xodtemplate_register_host (xodtemplate_host *)
int xodtemplate_register_service (xodtemplate_service *)
int xodtemplate_register_hostdependency (xodtemplate_hostdependency *)
int xodtemplate_register_hostescalation (xodtemplate_hostescalation *)
int xodtemplate_init_xobject_skiplists (void)
int xodtemplate_free_xobject_skiplists (void)
int xodtemplate_skiplist_compare_text (const char *val1a, const char *val1b, const char *val2a, const char *val2b)
int xodtemplate_skiplist_compare_host_template (void *a, void *b)
int xodtemplate_skiplist_compare_service_template (void *a, void *b)
int xodtemplate_skiplist_compare_command_template (void *a, void *b)
int xodtemplate_skiplist_compare_timeperiod_template (void *a, void *b)
int xodtemplate_skiplist_compare_contact_template (void *a, void *b)
int xodtemplate_skiplist_compare_contactgroup_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostgroup_template (void *a, void *b)
int xodtemplate_skiplist_compare_servicegroup_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostdependency_template (void *a, void *b)
int xodtemplate_skiplist_compare_servicedependency_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostescalation_template (void *a, void *b)
int xodtemplate_skiplist_compare_serviceescalation_template (void *a, void *b)
int xodtemplate_skiplist_compare_hostextinfo_template (void *a, void *b)
int xodtemplate_skiplist_compare_serviceextinfo_template (void *a, void *b)
int xodtemplate_skiplist_compare_host (void *a, void *b)
int xodtemplate_skiplist_compare_service (void *a, void *b)
int xodtemplate_skiplist_compare_contact (void *a, void *b)
int xodtemplate_skiplist_compare_contactgroup (void *a, void *b)
int xodtemplate_skiplist_compare_hostgroup (void *a, void *b)
int xodtemplate_skiplist_compare_servicegroup (void *a, void *b)
int xodtemplate_skiplist_compare_command (void *a, void *b)
int xodtemplate_skiplist_compare_timeperiod (void *a, void *b)
int xodtemplate_skiplist_compare_hostdependency (void *a, void *b)
int xodtemplate_skiplist_compare_servicedependency (void *a, void *b)
int xodtemplate_skiplist_compare_hostescalation (void *a, void *b)
int xodtemplate_skiplist_compare_serviceescalation (void *a, void *b)


Define Documentation

#define MAX_XODTEMPLATE_CONTACT_ADDRESSES   6

#define MAX_XODTEMPLATE_INPUT_BUFFER   1024

#define NUM_XOBJECT_SKIPLISTS   15

#define X_COMMAND_SKIPLIST   3

#define X_CONTACT_SKIPLIST   5

#define X_CONTACTGROUP_SKIPLIST   6

#define X_HOST_SKIPLIST   1

#define X_HOSTDEPENDENCY_SKIPLIST   9

#define X_HOSTESCALATION_SKIPLIST   11

#define X_HOSTEXTINFO_SKIPLIST   13

#define X_HOSTGROUP_SKIPLIST   7

#define X_SERVICE_SKIPLIST   2

#define X_SERVICEDEPENDENCY_SKIPLIST   10

#define X_SERVICEESCALATION_SKIPLIST   12

#define X_SERVICEEXTINFO_SKIPLIST   14

#define X_SERVICEGROUP_SKIPLIST   8

#define X_TIMEPERIOD_SKIPLIST   4

#define XODTEMPLATE_COMMAND   2

#define XODTEMPLATE_CONTACT   3

#define XODTEMPLATE_CONTACTGROUP   4

#define XODTEMPLATE_HOST   5

#define XODTEMPLATE_HOSTDEPENDENCY   12

#define XODTEMPLATE_HOSTESCALATION   11

#define XODTEMPLATE_HOSTEXTINFO   13

#define XODTEMPLATE_HOSTGROUP   6

#define XODTEMPLATE_HOSTGROUPESCALATION   9

#define XODTEMPLATE_NONE   0

#define XODTEMPLATE_NULL   "null"

#define XODTEMPLATE_SERVICE   7

#define XODTEMPLATE_SERVICEDEPENDENCY   8

#define XODTEMPLATE_SERVICEESCALATION   10

#define XODTEMPLATE_SERVICEEXTINFO   14

#define XODTEMPLATE_SERVICEGROUP   15

#define XODTEMPLATE_TIMEPERIOD   1


Typedef Documentation

typedef struct xodtemplate_command_struct xodtemplate_command

typedef struct xodtemplate_contact_struct xodtemplate_contact

typedef struct xodtemplate_contactgroup_struct xodtemplate_contactgroup

typedef struct xodtemplate_contactlist_struct xodtemplate_contactlist

typedef struct xodtemplate_customvariablesmember_struct xodtemplate_customvariablesmember

typedef struct xodtemplate_daterange_struct xodtemplate_daterange

typedef struct xodtemplate_escalation_condition_struct xodtemplate_escalation_condition

typedef struct xodtemplate_host_struct xodtemplate_host

typedef struct xodtemplate_hostdependency_struct xodtemplate_hostdependency

typedef struct xodtemplate_hostescalation_struct xodtemplate_hostescalation

typedef struct xodtemplate_hostextinfo_struct xodtemplate_hostextinfo

typedef struct xodtemplate_hostgroup_struct xodtemplate_hostgroup

typedef struct xodtemplate_hostlist_struct xodtemplate_hostlist

typedef struct xodtemplate_memberlist_struct xodtemplate_memberlist

typedef struct xodtemplate_service_struct xodtemplate_service

typedef struct xodtemplate_service_cursor_struct xodtemplate_service_cursor

typedef struct xodtemplate_servicedependency_struct xodtemplate_servicedependency

typedef struct xodtemplate_serviceescalation_struct xodtemplate_serviceescalation

typedef struct xodtemplate_serviceextinfo_struct xodtemplate_serviceextinfo

typedef struct xodtemplate_servicegroup_struct xodtemplate_servicegroup

typedef struct xodtemplate_servicelist_struct xodtemplate_servicelist

typedef struct xodtemplate_timeperiod_struct xodtemplate_timeperiod


Function Documentation

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_contact ( xodtemplate_contact ,
char *  ,
char *   
)

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_host ( xodtemplate_host ,
char *  ,
char *   
)

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_object ( xodtemplate_customvariablesmember **  ,
char *  ,
char *   
)

xodtemplate_customvariablesmember* xodtemplate_add_custom_variable_to_service ( xodtemplate_service ,
char *  ,
char *   
)

xodtemplate_daterange* xodtemplate_add_exception_to_timeperiod ( xodtemplate_timeperiod ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
int  ,
char *   
)

int xodtemplate_add_object_property ( char *  ,
int   
)

int xodtemplate_begin_object_definition ( char *  ,
int  ,
int  ,
int   
)

int xodtemplate_end_object_definition ( int   ) 

int xodtemplate_free_memory ( void   ) 

int xodtemplate_free_xobject_skiplists ( void   ) 

int xodtemplate_get_month_from_string ( char *  ,
int *   
)

int xodtemplate_get_time_ranges ( char *  ,
unsigned long *  ,
unsigned long *   
)

int xodtemplate_get_weekday_from_string ( char *  ,
int *   
)

int xodtemplate_grab_config_info ( char *   ) 

int xodtemplate_init_xobject_skiplists ( void   ) 

int xodtemplate_parse_timeperiod_directive ( xodtemplate_timeperiod ,
char *  ,
char *   
)

int xodtemplate_process_config_dir ( char *  ,
int   
)

int xodtemplate_process_config_file ( char *  ,
int   
)

int xodtemplate_read_config_data ( char *  ,
int  ,
int  ,
int   
)

int xodtemplate_register_command ( xodtemplate_command  ) 

int xodtemplate_register_contact ( xodtemplate_contact  ) 

int xodtemplate_register_contactgroup ( xodtemplate_contactgroup  ) 

int xodtemplate_register_host ( xodtemplate_host  ) 

int xodtemplate_register_hostdependency ( xodtemplate_hostdependency  ) 

int xodtemplate_register_hostescalation ( xodtemplate_hostescalation  ) 

int xodtemplate_register_hostgroup ( xodtemplate_hostgroup  ) 

int xodtemplate_register_objects ( void   ) 

int xodtemplate_register_service ( xodtemplate_service  ) 

int xodtemplate_register_servicedependency ( xodtemplate_servicedependency  ) 

int xodtemplate_register_serviceescalation ( xodtemplate_serviceescalation  ) 

int xodtemplate_register_servicegroup ( xodtemplate_servicegroup  ) 

int xodtemplate_register_timeperiod ( xodtemplate_timeperiod  ) 

int xodtemplate_skiplist_compare_command ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_command_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_contact ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_contact_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_contactgroup ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_contactgroup_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_host ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_host_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_hostdependency ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_hostdependency_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_hostescalation ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_hostescalation_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_hostextinfo_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_hostgroup ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_hostgroup_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_service ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_service_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_servicedependency ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_servicedependency_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_serviceescalation ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_serviceescalation_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_serviceextinfo_template ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_servicegroup ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_servicegroup_template ( void *  a,
void *  b 
)

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

int xodtemplate_skiplist_compare_timeperiod ( void *  a,
void *  b 
)

int xodtemplate_skiplist_compare_timeperiod_template ( void *  a,
void *  b 
)


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