chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: rename struct timestamp to dual_timestamp to avoid name clash with IP system...
[elogind.git]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index 241031242121c21f46232c375269c248dd431e78..91e0359e0c15d612a5c4ac264e96cb29bc6d50fb 100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-34,10
+34,10
@@
typedef uint64_t usec_t;
typedef uint64_t usec_t;
-typedef struct timestamp {
+typedef struct
dual_
timestamp {
usec_t realtime;
usec_t monotonic;
usec_t realtime;
usec_t monotonic;
-} timestamp;
+}
dual_
timestamp;
#define MSEC_PER_SEC 1000ULL
#define USEC_PER_SEC 1000000ULL
#define MSEC_PER_SEC 1000ULL
#define USEC_PER_SEC 1000000ULL
@@
-60,7
+60,7
@@
typedef struct timestamp {
usec_t now(clockid_t clock);
usec_t now(clockid_t clock);
-
timestamp* timestamp_get(
timestamp *ts);
+
dual_timestamp* dual_timestamp_get(dual_
timestamp *ts);
usec_t timespec_load(const struct timespec *ts);
struct timespec *timespec_store(struct timespec *ts, usec_t u);
usec_t timespec_load(const struct timespec *ts);
struct timespec *timespec_store(struct timespec *ts, usec_t u);