diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-09-18 12:41:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-09-18 12:41:26 +0000 |
commit | 6dfad0abb0bb9c07741b10e679ee6db67b0d1f67 (patch) | |
tree | 2cc3851c54f1dd24adb398a8f0aa9e3c6c1f4e92 /src/gns/gns.h | |
parent | 8c106e966096e1c671b1bab4d05bd672ae5f4ea5 (diff) | |
download | gnunet-6dfad0abb0bb9c07741b10e679ee6db67b0d1f67.tar.gz gnunet-6dfad0abb0bb9c07741b10e679ee6db67b0d1f67.zip |
-peer review
Diffstat (limited to 'src/gns/gns.h')
-rw-r--r-- | src/gns/gns.h | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/src/gns/gns.h b/src/gns/gns.h index 1dbb8b8f3..2f4ce3928 100644 --- a/src/gns/gns.h +++ b/src/gns/gns.h | |||
@@ -17,9 +17,6 @@ | |||
17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | |||
21 | #include "gnunet_gns_service.h" | ||
22 | |||
23 | /** | 20 | /** |
24 | * @file gns/gns.h | 21 | * @file gns/gns.h |
25 | * @brief IPC messages between GNS API and GNS service | 22 | * @brief IPC messages between GNS API and GNS service |
@@ -28,6 +25,8 @@ | |||
28 | #ifndef GNS_H | 25 | #ifndef GNS_H |
29 | #define GNS_H | 26 | #define GNS_H |
30 | 27 | ||
28 | #include "gnunet_gns_service.h" | ||
29 | |||
31 | #define GNUNET_GNS_TLD "gads" | 30 | #define GNUNET_GNS_TLD "gads" |
32 | #define GNUNET_GNS_TLD_ZKEY "zkey" | 31 | #define GNUNET_GNS_TLD_ZKEY "zkey" |
33 | #define GNUNET_GNS_TLD_PLUS "+" | 32 | #define GNUNET_GNS_TLD_PLUS "+" |
@@ -54,6 +53,11 @@ struct GNUNET_GNS_ClientLookupMessage | |||
54 | uint32_t id GNUNET_PACKED; | 53 | uint32_t id GNUNET_PACKED; |
55 | 54 | ||
56 | /** | 55 | /** |
56 | * If use_default_zone is empty this zone is used for lookup | ||
57 | */ | ||
58 | struct GNUNET_CRYPTO_ShortHashCode zone; | ||
59 | |||
60 | /** | ||
57 | * Only check cached results | 61 | * Only check cached results |
58 | */ | 62 | */ |
59 | uint32_t only_cached GNUNET_PACKED; | 63 | uint32_t only_cached GNUNET_PACKED; |
@@ -69,14 +73,9 @@ struct GNUNET_GNS_ClientLookupMessage | |||
69 | uint32_t have_key GNUNET_PACKED; | 73 | uint32_t have_key GNUNET_PACKED; |
70 | 74 | ||
71 | /** | 75 | /** |
72 | * If use_default_zone is empty this zone is used for lookup | ||
73 | */ | ||
74 | struct GNUNET_CRYPTO_ShortHashCode zone; | ||
75 | |||
76 | /** | ||
77 | * the type of record to look up | 76 | * the type of record to look up |
78 | */ | 77 | */ |
79 | enum GNUNET_GNS_RecordType type; | 78 | /* enum GNUNET_GNS_RecordType */ uint32_t type; |
80 | 79 | ||
81 | /* Followed by the key for shorten (optional) see have_key */ | 80 | /* Followed by the key for shorten (optional) see have_key */ |
82 | 81 | ||
@@ -104,7 +103,6 @@ struct GNUNET_GNS_ClientLookupResultMessage | |||
104 | */ | 103 | */ |
105 | uint32_t rd_count; | 104 | uint32_t rd_count; |
106 | 105 | ||
107 | // FIXME: what format has a GNS_Record? | ||
108 | /* followed by rd_count GNUNET_NAMESTORE_RecordData structs*/ | 106 | /* followed by rd_count GNUNET_NAMESTORE_RecordData structs*/ |
109 | 107 | ||
110 | }; | 108 | }; |
@@ -125,11 +123,6 @@ struct GNUNET_GNS_ClientShortenMessage | |||
125 | uint32_t id GNUNET_PACKED; | 123 | uint32_t id GNUNET_PACKED; |
126 | 124 | ||
127 | /** | 125 | /** |
128 | * Should we look up in the default zone? | ||
129 | */ | ||
130 | uint32_t use_default_zone GNUNET_PACKED; | ||
131 | |||
132 | /** | ||
133 | * If use_default_zone is empty this zone is used for lookup | 126 | * If use_default_zone is empty this zone is used for lookup |
134 | */ | 127 | */ |
135 | struct GNUNET_CRYPTO_ShortHashCode zone; | 128 | struct GNUNET_CRYPTO_ShortHashCode zone; |
@@ -143,6 +136,11 @@ struct GNUNET_GNS_ClientShortenMessage | |||
143 | * Private zone | 136 | * Private zone |
144 | */ | 137 | */ |
145 | struct GNUNET_CRYPTO_ShortHashCode private_zone; | 138 | struct GNUNET_CRYPTO_ShortHashCode private_zone; |
139 | |||
140 | /** | ||
141 | * Should we look up in the default zone? | ||
142 | */ | ||
143 | uint32_t use_default_zone GNUNET_PACKED; | ||
146 | 144 | ||
147 | /* Followed by the name to shorten up */ | 145 | /* Followed by the name to shorten up */ |
148 | }; | 146 | }; |