aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-08-11 22:24:07 +0000
committerChristian Grothoff <christian@grothoff.org>2009-08-11 22:24:07 +0000
commit596fe6fcff78fc66f2ed7e8bd46475feef9c6210 (patch)
treef2d48964e5d77ada7f9f5188b5f8c35483dded66 /src/include
parentb309c5f5ae339faf3632f7ee3a86520981f6523a (diff)
downloadgnunet-596fe6fcff78fc66f2ed7e8bd46475feef9c6210.tar.gz
gnunet-596fe6fcff78fc66f2ed7e8bd46475feef9c6210.zip
more work on FS URIs
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_signatures.h8
-rw-r--r--src/include/gnunet_time_lib.h11
2 files changed, 16 insertions, 3 deletions
diff --git a/src/include/gnunet_signatures.h b/src/include/gnunet_signatures.h
index 90b04edb1..6e4b0dc42 100644
--- a/src/include/gnunet_signatures.h
+++ b/src/include/gnunet_signatures.h
@@ -59,10 +59,16 @@ extern "C"
59 */ 59 */
60#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 3 60#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_ADVERTISEMENT 3
61 61
62
63/**
64 * Signature of content URI placed into a namespace.
65 */
66#define GNUNET_SIGNATURE_PURPOSE_NAMESPACE_PLACEMENT 4
67
62/** 68/**
63 * 69 *
64 */ 70 */
65#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 3 71#define GNUNET_SIGNATURE_PURPOSE_RESOLVER_RESPONSE 5
66 72
67 73
68#if 0 /* keep Emacsens' auto-indent happy */ 74#if 0 /* keep Emacsens' auto-indent happy */
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 */
62struct GNUNET_TIME_RelativeNBO 62struct 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 */
71struct GNUNET_TIME_AbsoluteNBO 71struct 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
104struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_zero (void); 106struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_zero (void);
105 107
106/** 108/**
109 * Return absolute time of 0ms.
110 */
111struct 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 */
109struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_unit (void); 116struct GNUNET_TIME_Relative GNUNET_TIME_relative_get_unit (void);