30 #define DEFAULT_LOG_FACILITY LOG_DAEMON
31 #define DEFAULT_LOG_FACILITY_STRING "LOG_DAEMON"
33 #define DEFAULT_LOG_FACILITY LOG_USER
34 #define DEFAULT_LOG_FACILITY_STRING "LOG_USER"
37 #include <libxml/xpath.h>
39 #define KC_NAME_LENGTH 256
41 void log_init(
int facility,
const char *program_name);
42 void log_switch(
int facility,
const char *program_name);
43 void dual_log(
const char *format, ...);
45 int check_rng(
const char *filename,
const char *rngfilename);
47 int check_file(
const char *filename,
const char *log_string);
48 int check_file_from_xpath(xmlXPathContextPtr xpath_ctx,
const char *log_string,
const xmlChar *file_xexpr);
50 int check_path(
const char *pathname,
const char *log_string);
51 int check_path_from_xpath(xmlXPathContextPtr xpath_ctx,
const char *log_string,
const xmlChar *path_xexpr);
53 int check_user_group(xmlXPathContextPtr xpath_ctx,
const xmlChar *user_xexpr,
const xmlChar *group_xexpr);
55 int check_time_def(
const char *time_expr,
const char *location,
const char *field,
const char *filename,
int* interval);
56 int check_time_def_from_xpath(xmlXPathContextPtr xpath_ctx,
const xmlChar *time_xexpr,
const char *location,
const char *field,
const char *filename);
61 int StrStrtoi(
const char*
string,
int* value);
62 int StrStrtol(
const char*
string,
long* value);
64 void StrAppend(
char** str1,
const char* str2);
67 void*
MemCalloc(
size_t nmemb,
size_t size);