32 #define DEFAULT_LOG_FACILITY LOG_DAEMON
33 #define DEFAULT_LOG_FACILITY_STRING "LOG_DAEMON"
35 #define DEFAULT_LOG_FACILITY LOG_USER
36 #define DEFAULT_LOG_FACILITY_STRING "LOG_USER"
39 #include <libxml/xpath.h>
41 #define KC_NAME_LENGTH 256
43 void log_init(
int facility,
const char *program_name);
44 void log_switch(
int facility,
const char *program_name);
45 void dual_log(
const char *format, ...);
47 int check_rng(
const char *filename,
const char *rngfilename);
49 int check_file(
const char *filename,
const char *log_string);
50 int check_file_from_xpath(xmlXPathContextPtr xpath_ctx,
const char *log_string,
const xmlChar *file_xexpr);
52 int check_path(
const char *pathname,
const char *log_string);
53 int check_path_from_xpath(xmlXPathContextPtr xpath_ctx,
const char *log_string,
const xmlChar *path_xexpr);
55 int check_user_group(xmlXPathContextPtr xpath_ctx,
const xmlChar *user_xexpr,
const xmlChar *group_xexpr);
57 int check_time_def(
const char *time_expr,
const char *location,
const char *field,
const char *filename,
int* interval);
58 int check_time_def_from_xpath(xmlXPathContextPtr xpath_ctx,
const xmlChar *time_xexpr,
const char *location,
const char *field,
const char *filename);
63 int StrStrtoi(
const char*
string,
int* value);
64 int StrStrtol(
const char*
string,
long* value);
66 void StrAppend(
char** str1,
const char* str2);
69 void*
MemCalloc(
size_t nmemb,
size_t size);