Files
nDPId/utils.h
Toni Uhlig 0a7ad7a76a nDPId-test: added JSON distribution + JSON parsing (Multithreaded design re-using most of nDPId/nDPIsrvd core)
* improved Makefile.old install targets
 * splitted nDPIsrvd_parse into nDPIsrvd_parse_line and nDPIsrvd_parse_all for the sake of readability
 * minor Python script improvments (check for nDPIsrvd.py on multiple locations, may be superseeded by setuptools in the future)
 * some paths needs to be absolute (chdir() during daemonize) and therefor additional checks introduced
 * test run script checks and fails if certain files are are missing (PCAP file <=> result output file)
 * removed not very useful "internal format error" JSON serialization if a BUG for same exists
 * fixed invalid l4 type statistics counters for nDPIsrvd-collectd

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2021-04-09 00:18:35 +02:00

19 lines
527 B
C

#ifndef UTILS_H
#define UTILS_H 1
int is_path_absolute(char const * const prefix,
char const * const path);
void daemonize_enable(void);
int daemonize_with_pidfile(char const * const pidfile);
int daemonize_shutdown(char const * const pidfile);
int change_user_group(char const * const user, char const * const group,
char const * const pidfile,
char const * const uds_collector_path,
char const * const uds_distributor_path);
#endif