diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-18 21:38:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-18 21:38:14 +0000 |
commit | b103d434085de5070880f3bcb025cda5fff6836d (patch) | |
tree | 789bf45f4ea9d5bd560bd76330f42dc0259b6b04 /src/datastore/datastore.h | |
parent | 5ee114a710348292e44f1f7865095381df3166fc (diff) | |
download | gnunet-b103d434085de5070880f3bcb025cda5fff6836d.tar.gz gnunet-b103d434085de5070880f3bcb025cda5fff6836d.zip |
work on datastore API implementation
Diffstat (limited to 'src/datastore/datastore.h')
-rw-r--r-- | src/datastore/datastore.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/datastore/datastore.h b/src/datastore/datastore.h index 92a2889d8..45dc70047 100644 --- a/src/datastore/datastore.h +++ b/src/datastore/datastore.h | |||
@@ -48,12 +48,12 @@ struct ReserveMessage | |||
48 | /** | 48 | /** |
49 | * Number of bytes to reserve. | 49 | * Number of bytes to reserve. |
50 | */ | 50 | */ |
51 | uint64_t size GNUNET_PACKED; | 51 | uint64_t amount GNUNET_PACKED; |
52 | 52 | ||
53 | /** | 53 | /** |
54 | * Number of items to reserve. | 54 | * Number of items to reserve. |
55 | */ | 55 | */ |
56 | uint64_t items GNUNET_PACKED; | 56 | uint64_t entries GNUNET_PACKED; |
57 | }; | 57 | }; |
58 | 58 | ||
59 | 59 | ||
@@ -71,7 +71,7 @@ struct StatusMessage | |||
71 | struct GNUNET_MessageHeader header; | 71 | struct GNUNET_MessageHeader header; |
72 | 72 | ||
73 | /** | 73 | /** |
74 | * Status code. | 74 | * Status code, -1 for errors. |
75 | */ | 75 | */ |
76 | int32_t status GNUNET_PACKED; | 76 | int32_t status GNUNET_PACKED; |
77 | 77 | ||
@@ -194,7 +194,10 @@ struct DataMessage | |||
194 | uint32_t anonymity GNUNET_PACKED; | 194 | uint32_t anonymity GNUNET_PACKED; |
195 | 195 | ||
196 | /** | 196 | /** |
197 | * Unique ID for the content (can be used for UPDATE). | 197 | * Unique ID for the content (can be used for UPDATE); |
198 | * can be zero for remove (which indicates that | ||
199 | * the datastore should use whatever UID matches | ||
200 | * the key and content). | ||
198 | */ | 201 | */ |
199 | uint64_t uid; | 202 | uint64_t uid; |
200 | 203 | ||