diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-15 10:06:46 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-15 10:06:46 +0000 |
commit | 4cdb439de274aee9c25c71e629b2002745b49199 (patch) | |
tree | cbddc8e2e2d474a83f2bd622a105a35d6e5bbba1 /src/fs/fs.h | |
parent | 35885b75d0d876cb20a68706d909ad2657be2c2b (diff) | |
download | gnunet-4cdb439de274aee9c25c71e629b2002745b49199.tar.gz gnunet-4cdb439de274aee9c25c71e629b2002745b49199.zip |
towards fixing #1786
Diffstat (limited to 'src/fs/fs.h')
-rw-r--r-- | src/fs/fs.h | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/fs/fs.h b/src/fs/fs.h index bbe4e8660..90d32f4a7 100644 --- a/src/fs/fs.h +++ b/src/fs/fs.h | |||
@@ -178,6 +178,25 @@ struct UnindexMessage | |||
178 | 178 | ||
179 | 179 | ||
180 | /** | 180 | /** |
181 | * No options. | ||
182 | */ | ||
183 | #define SEARCH_MESSAGE_OPTION_NONE 0 | ||
184 | |||
185 | /** | ||
186 | * Only search the local datastore (no network) | ||
187 | */ | ||
188 | #define SEARCH_MESSAGE_OPTION_LOOPBACK_ONLY 1 | ||
189 | |||
190 | /** | ||
191 | * Request is too large to fit in 64k format. The list of | ||
192 | * already-known search results will be continued in another message | ||
193 | * for the same type/query/target and additional already-known results | ||
194 | * following this one). | ||
195 | */ | ||
196 | #define SEARCH_MESSAGE_OPTION_CONTINUED 2 | ||
197 | |||
198 | |||
199 | /** | ||
181 | * Message sent from a GNUnet (fs) search activity to the | 200 | * Message sent from a GNUnet (fs) search activity to the |
182 | * gnunet-service-fs to start a search. | 201 | * gnunet-service-fs to start a search. |
183 | */ | 202 | */ |
@@ -191,10 +210,15 @@ struct SearchMessage | |||
191 | struct GNUNET_MessageHeader header; | 210 | struct GNUNET_MessageHeader header; |
192 | 211 | ||
193 | /** | 212 | /** |
194 | * Bitmask with options. Zero for no options, one for loopback-only. | 213 | * Bitmask with options. Zero for no options, one for |
214 | * loopback-only, two for 'to be continued' (with a second search | ||
215 | * message for the same type/query/target and additional | ||
216 | * already-known results following this one). See | ||
217 | * SEARCH_MESSAGE_OPTION_ defines. | ||
218 | * | ||
195 | * Other bits are currently not defined. | 219 | * Other bits are currently not defined. |
196 | */ | 220 | */ |
197 | int32_t options GNUNET_PACKED; | 221 | uint32_t options GNUNET_PACKED; |
198 | 222 | ||
199 | /** | 223 | /** |
200 | * Type of the content that we're looking for. | 224 | * Type of the content that we're looking for. |