26 #ifndef OPENVAS_MANAGER_MANAGE_UTILS_H
27 #define OPENVAS_MANAGER_MANAGE_UTILS_H
32 #define SEVERITY_LOG 0.0
34 #define SEVERITY_FP -1.0
36 #define SEVERITY_DEBUG -2.0
38 #define SEVERITY_ERROR -3.0
40 #define SEVERITY_MISSING -99.0
42 #define SEVERITY_UNDEFINED -98.0
44 #define SEVERITY_MAX 10.0
46 #define SEVERITY_SUBDIVISIONS 10
59 next_time (time_t,
int,
int,
const char*,
int);
time_t months_between(time_t time1, time_t time2)
Count number of full months between two times.
time_t add_months(time_t time, int months)
Add months to a time.
double level_max_severity(const char *level, const char *class)
Get the minimum severity for a severity level and class.
int manage_count_hosts_max(const char *given_hosts, const char *exclude_hosts, int max_hosts)
Return number of hosts described by a hosts string.
long time_offset(const char *zone, time_t time)
Get the offset from UTC of a timezone at a particular time.
double level_min_severity(const char *level, const char *class)
Get the minimum severity for a severity level and class.
long current_offset(const char *)
Get the current offset from UTC of a timezone.
time_t next_time(time_t first, int period, int period_months, const char *timezone, int periods_offset)
Calculate the next time from now given a start time and a period.
int valid_db_resource_type(const char *)
Check whether a resource type table name is valid.