X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Ftime.h;h=0e67511ad437651d23175e9071d9ee15bc0ad032;hb=7421fd3c8aba3cd6cb5503185d86ac13a8a6fcd0;hp=0684bec16bf187a7e3b65b2f61488955fdc0806c;hpb=209b1b9a98f8d090ac69802f5147ebe3e1c84624;p=libucw.git diff --git a/ucw/time.h b/ucw/time.h index 0684bec1..0e67511a 100644 --- a/ucw/time.h +++ b/ucw/time.h @@ -10,6 +10,14 @@ #ifndef _UCW_TIMER_H #define _UCW_TIMER_H +#ifdef CONFIG_UCW_CLEAN_ABI +#define get_timer ucw_get_timer +#define get_timestamp ucw_get_timestamp +#define init_timer ucw_init_timer +#define switch_timer ucw_switch_timer +#define timestamp_type ucw_timestamp_type +#endif + /*** * === Timestamps * @@ -24,6 +32,16 @@ timestamp_t get_timestamp(void); /** Get current time as a millisecond timestamp. **/ +/* time-conf.c */ + +/** + * A user type for parsing of time intervals in configuration files. + * It is specified as fractional seconds and internally converted to + * a <>. When conversion of + * a non-zero value yields zero, an error is raised. + **/ +extern struct cf_user_type timestamp_type; + /*** * === Timers *