Added a helper to declare timestamps.
[gliv.git] / src / include / timestamp.h
blobd377e3ccc5906bc6c733493ce7affbce378e7d0e
1 #ifndef TIMESTAMP_H
2 #define TIMESTAMP_H
4 #include "gliv.h"
6 typedef gulong timestamp_t;
8 #define DECLARE_TIMESTAMP(name) timestamp_t name = 0
10 void touch(timestamp_t * ts);
11 void reset_timestamp(timestamp_t * ts);
12 gboolean has_timestamp(timestamp_t ts);
13 gboolean up_to_date(timestamp_t ts, timestamp_t req);
15 #endif