summaryrefslogtreecommitdiffstatsabout
path: root/utility/util.h
blob: a5a7f7e5dd6d29ec935df91d9652256bf432e3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef UTIL_H_
#define UTIL_H_

#include "apr_pools.h"

#include "config.h"

char *lowerstr(apr_pool_t *pool, const char *input);

/**
 * Chomp new line characters off the end of the line
 */
void line_chomp(char *str);

int ap_unescape_url(char *url);

void logging_preinit(config_t *cfg);

void logging_init(config_t *cfg);

void logging_log(config_t *cfg, loglevel_e level, const char *fmt, ...)
            __attribute__((format(printf, 3, 4)));

const char *logging_strerror(apr_status_t rv);

#endif /*UTIL_H_*/