forked from menault/TD2_DEV51_Qualite_Algo
First commit
This commit is contained in:
7
ping-report/include/daemon.h
Normal file
7
ping-report/include/daemon.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#ifndef DAEMON_H
|
||||
#define DAEMON_H
|
||||
|
||||
int create_daemon();
|
||||
void daemon_work();
|
||||
|
||||
#endif
|
8
ping-report/include/db-sqlite.h
Normal file
8
ping-report/include/db-sqlite.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef DB_SQLITE_H
|
||||
#define DB_SQLITE_H
|
||||
|
||||
int db_connect();
|
||||
int db_disconnect();
|
||||
int insert_hourly_report(double mean,double max,double min,int high,int loss,int reached);
|
||||
|
||||
#endif
|
4
ping-report/include/ping-report.h
Normal file
4
ping-report/include/ping-report.h
Normal file
@@ -0,0 +1,4 @@
|
||||
#ifndef PING_REPORT_H
|
||||
#define PING_REPORT_H
|
||||
|
||||
#endif
|
8
ping-report/include/stats.h
Normal file
8
ping-report/include/stats.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef STATS_H
|
||||
#define STATS_H
|
||||
|
||||
/*@null@*/char* get_ping_from_temp_log();
|
||||
void write_ping_log(char* new_ping);
|
||||
void set_stats_ping();
|
||||
|
||||
#endif
|
9
ping-report/include/utils.h
Normal file
9
ping-report/include/utils.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
|
||||
#define STATUS_LOG "/var/log/ping-report/status.log"
|
||||
|
||||
void write_pid_file();
|
||||
void remove_file(char* filename);
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user