include/comments.h File Reference

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

Go to the source code of this file.

Data Structures

struct  comment_struct

Defines

#define COMMENTSOURCE_INTERNAL   0
#define COMMENTSOURCE_EXTERNAL   1
#define HOST_COMMENT   1
#define SERVICE_COMMENT   2
#define ANY_COMMENT   3
#define USER_COMMENT   1
#define DOWNTIME_COMMENT   2
#define FLAPPING_COMMENT   3
#define ACKNOWLEDGEMENT_COMMENT   4
#define COMMENT_HASHSLOTS   1024

Typedefs

typedef comment_struct comment

Functions

commentfind_comment (unsigned long, int)
commentfind_service_comment (unsigned long)
commentfind_host_comment (unsigned long)
commentfind_comment_by_similar_content (int, char *, char *, char *, char *)
commentget_first_comment_by_host (char *)
commentget_next_comment_by_host (char *, comment *)
int number_of_host_comments (char *)
int number_of_service_comments (char *, char *)
int add_comment (int, int, char *, char *, time_t, char *, char *, unsigned long, int, int, time_t, int)
int sort_comments (void)
int add_host_comment (int, char *, time_t, char *, char *, unsigned long, int, int, time_t, int)
int add_service_comment (int, char *, char *, time_t, char *, char *, unsigned long, int, int, time_t, int)
int add_comment_to_hashlist (comment *)
void free_comment_data (void)

Variables

int defer_comment_sorting


Define Documentation

#define ACKNOWLEDGEMENT_COMMENT   4

#define ANY_COMMENT   3

#define COMMENT_HASHSLOTS   1024

#define COMMENTSOURCE_EXTERNAL   1

#define COMMENTSOURCE_INTERNAL   0

#define DOWNTIME_COMMENT   2

#define FLAPPING_COMMENT   3

#define HOST_COMMENT   1

#define SERVICE_COMMENT   2

#define USER_COMMENT   1


Typedef Documentation

typedef struct comment_struct comment


Function Documentation

int add_comment ( int  ,
int  ,
char *  ,
char *  ,
time_t  ,
char *  ,
char *  ,
unsigned  long,
int  ,
int  ,
time_t  ,
int   
)

int add_comment_to_hashlist ( comment  ) 

int add_host_comment ( int  ,
char *  ,
time_t  ,
char *  ,
char *  ,
unsigned  long,
int  ,
int  ,
time_t  ,
int   
)

int add_service_comment ( int  ,
char *  ,
char *  ,
time_t  ,
char *  ,
char *  ,
unsigned  long,
int  ,
int  ,
time_t  ,
int   
)

comment* find_comment ( unsigned  long,
int   
)

comment* find_comment_by_similar_content ( int  ,
char *  ,
char *  ,
char *  ,
char *   
)

comment* find_host_comment ( unsigned  long  ) 

comment* find_service_comment ( unsigned  long  ) 

void free_comment_data ( void   ) 

comment* get_first_comment_by_host ( char *   ) 

comment* get_next_comment_by_host ( char *  ,
comment  
)

int number_of_host_comments ( char *   ) 

int number_of_service_comments ( char *  ,
char *   
)

int sort_comments ( void   ) 


Variable Documentation

int defer_comment_sorting


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