#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 | |
comment * | find_comment (unsigned long, int) |
comment * | find_service_comment (unsigned long) |
comment * | find_host_comment (unsigned long) |
comment * | find_comment_by_similar_content (int, char *, char *, char *, char *) |
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 | 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 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 struct comment_struct comment |
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 * | ) |
int number_of_host_comments | ( | char * | ) |
int number_of_service_comments | ( | char * | , | |
char * | ||||
) |
int sort_comments | ( | void | ) |