diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-08-11 22:24:07 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-08-11 22:24:07 +0000 |
commit | 596fe6fcff78fc66f2ed7e8bd46475feef9c6210 (patch) | |
tree | f2d48964e5d77ada7f9f5188b5f8c35483dded66 /src/include/gnunet_time_lib.h | |
parent | b309c5f5ae339faf3632f7ee3a86520981f6523a (diff) | |
download | gnunet-596fe6fcff78fc66f2ed7e8bd46475feef9c6210.tar.gz gnunet-596fe6fcff78fc66f2ed7e8bd46475feef9c6210.zip |
more work on FS URIs
Diffstat (limited to 'src/include/gnunet_time_lib.h')
-rw-r--r-- | src/include/gnunet_time_lib.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/include/gnunet_time_lib.h b/src/include/gnunet_time_lib.h index 5a339e6cb..b5da09cd8 100644 --- a/src/include/gnunet_time_lib.h +++ b/src/include/gnunet_time_lib.h | |||
@@ -61,7 +61,7 @@ struct GNUNET_TIME_Relative | |||
61 | */ | 61 | */ |
62 | struct GNUNET_TIME_RelativeNBO | 62 | struct GNUNET_TIME_RelativeNBO |
63 | { | 63 | { |
64 | uint64_t value GNUNET_PACKED; | 64 | uint64_t value__ GNUNET_PACKED; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | 67 | ||
@@ -70,13 +70,15 @@ struct GNUNET_TIME_RelativeNBO | |||
70 | */ | 70 | */ |
71 | struct GNUNET_TIME_AbsoluteNBO | 71 | struct GNUNET_TIME_AbsoluteNBO |
72 | { | 72 | { |
73 | uint64_t value GNUNET_PACKED; | 73 | uint64_t value__ GNUNET_PACKED; |
74 | }; | 74 | }; |
75 | 75 | ||
76 | |||
76 | /** | 77 | /** |
77 | * @brief constants to specify time | 78 | * @brief constants to specify time |
78 | */ | 79 | */ |
79 | #define GNUNET_TIME_UNIT_ZERO GNUNET_TIME_relative_get_zero() | 80 | #define GNUNET_TIME_UNIT_ZERO GNUNET_TIME_relative_get_zero() |
81 | #define GNUNET_TIME_UNIT_ZERO_ABS GNUNET_TIME_absolute_get_zero() | ||
80 | #define GNUNET_TIME_UNIT_MILLISECONDS GNUNET_TIME_relative_get_unit() | 82 | #define GNUNET_TIME_UNIT_MILLISECONDS GNUNET_TIME_relative_get_unit() |
81 | #define GNUNET_TIME_UNIT_SECONDS GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 1000) | 83 | #define GNUNET_TIME_UNIT_SECONDS GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_MILLISECONDS, 1000) |
82 | #define GNUNET_TIME_UNIT_MINUTES GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 60) | 84 | #define GNUNET_TIME_UNIT_MINUTES GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 60) |
@@ -104,6 +106,11 @@ struct GNUNET_TIME_AbsoluteNBO | |||
104 | struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_zero (void); | 106 | struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_zero (void); |
105 | 107 | ||
106 | /** | 108 | /** |
109 | * Return absolute time of 0ms. | ||
110 | */ | ||
111 | struct GNUNET_TIME_Absolute GNUNET_TIME_absolute_get_zero (void); | ||
112 | |||
113 | /** | ||
107 | * Return relative time of 1ms. | 114 | * Return relative time of 1ms. |
108 | */ | 115 | */ |
109 | struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_unit (void); | 116 | struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_unit (void); |