#include "../include/config.h"
#include "../include/common.h"
#include "../include/comments.h"
#include "../include/objects.h"
#include "../xdata/xcddefault.h"
Functions | |
int | add_comment_to_hashlist (comment *new_comment) |
int | add_host_comment (int entry_type, char *host_name, time_t entry_time, char *author, char *comment_data, unsigned long comment_id, int persistent, int expires, time_t expire_time, int source) |
int | add_service_comment (int entry_type, char *host_name, char *svc_description, time_t entry_time, char *author, char *comment_data, unsigned long comment_id, int persistent, int expires, time_t expire_time, int source) |
int | add_comment (int comment_type, int entry_type, char *host_name, char *svc_description, time_t entry_time, char *author, char *comment_data, unsigned long comment_id, int persistent, int expires, time_t expire_time, int source) |
static int | comment_compar (const void *p1, const void *p2) |
int | sort_comments (void) |
void | free_comment_data (void) |
int | number_of_host_comments (char *host_name) |
int | number_of_service_comments (char *host_name, char *svc_description) |
comment * | get_first_comment_by_host (char *host_name) |
comment * | get_next_comment_by_host (char *host_name, comment *start) |
comment * | find_service_comment (unsigned long comment_id) |
comment * | find_host_comment (unsigned long comment_id) |
comment * | find_comment (unsigned long comment_id, int comment_type) |
comment * | find_comment_by_similar_content (int comment_type, char *hostname, char *service_description, char *author, char *comment_data) |
Variables | |
comment * | comment_list = NULL |
int | defer_comment_sorting = 0 |
comment ** | comment_hashlist = NULL |
int add_comment | ( | int | comment_type, | |
int | entry_type, | |||
char * | host_name, | |||
char * | svc_description, | |||
time_t | entry_time, | |||
char * | author, | |||
char * | comment_data, | |||
unsigned long | comment_id, | |||
int | persistent, | |||
int | expires, | |||
time_t | expire_time, | |||
int | source | |||
) |
int add_comment_to_hashlist | ( | comment * | new_comment | ) |
int add_host_comment | ( | int | entry_type, | |
char * | host_name, | |||
time_t | entry_time, | |||
char * | author, | |||
char * | comment_data, | |||
unsigned long | comment_id, | |||
int | persistent, | |||
int | expires, | |||
time_t | expire_time, | |||
int | source | |||
) |
int add_service_comment | ( | int | entry_type, | |
char * | host_name, | |||
char * | svc_description, | |||
time_t | entry_time, | |||
char * | author, | |||
char * | comment_data, | |||
unsigned long | comment_id, | |||
int | persistent, | |||
int | expires, | |||
time_t | expire_time, | |||
int | source | |||
) |
static int comment_compar | ( | const void * | p1, | |
const void * | p2 | |||
) | [static] |
comment* find_comment | ( | unsigned long | comment_id, | |
int | comment_type | |||
) |
comment* find_comment_by_similar_content | ( | int | comment_type, | |
char * | hostname, | |||
char * | service_description, | |||
char * | author, | |||
char * | comment_data | |||
) |
comment* find_host_comment | ( | unsigned long | comment_id | ) |
comment* find_service_comment | ( | unsigned long | comment_id | ) |
void free_comment_data | ( | void | ) |
comment* get_first_comment_by_host | ( | char * | host_name | ) |
int number_of_host_comments | ( | char * | host_name | ) |
int number_of_service_comments | ( | char * | host_name, | |
char * | svc_description | |||
) |
int sort_comments | ( | void | ) |
comment** comment_hashlist = NULL |
comment* comment_list = NULL |
int defer_comment_sorting = 0 |