2016-08-26 01:28:34 +02:00
|
|
|
#include "rfc3161.h"
|
2016-08-24 23:03:49 +02:00
|
|
|
|
2016-09-12 08:39:03 +02:00
|
|
|
typedef struct _code {
|
|
|
|
char *c_name;
|
|
|
|
int c_val;
|
|
|
|
} CODE;
|
|
|
|
|
|
|
|
static void signal_handler_general(int sig_num);
|
|
|
|
static void signal_handler_up(int sig_num);
|
2015-12-17 21:46:45 +01:00
|
|
|
void skeleton_daemon();
|
2016-09-01 19:43:29 +02:00
|
|
|
int init_pid(char *pidfile_path);
|
|
|
|
int write_pid(char *pidfile_path);
|
2016-08-26 20:39:45 +02:00
|
|
|
void uts_logger(rfc3161_context *ct, int priority, char *fmt, ...);
|
2016-08-29 08:34:59 +02:00
|
|
|
void log_hex(rfc3161_context *ct, int priority, char *id,
|
|
|
|
unsigned char *content, int content_length);
|
2016-09-01 07:59:02 +02:00
|
|
|
int set_params(rfc3161_context *ct, char *conf_file, char *conf_wd);
|
2016-09-02 00:36:25 +02:00
|
|
|
static char *rand_string(char *str, size_t size);
|
2016-09-08 23:21:53 +02:00
|
|
|
void free_uts_context(rfc3161_context *ct);
|
2016-09-12 08:39:03 +02:00
|
|
|
|
|
|
|
// some global variable to handle signals
|
2016-08-31 07:57:51 +02:00
|
|
|
int g_uts_sig_up;
|
|
|
|
int g_uts_sig;
|