aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/datastore.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-24 20:17:39 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-24 20:17:39 +0000
commit3140154d46212e08e0d73ed891a66213a6813075 (patch)
tree018a55a3899207664b388fcf47a679ca54ca6fbf /src/datastore/datastore.h
parentd5fd881c2a044474b54ddf03b6ab8be8d2b75927 (diff)
downloadgnunet-3140154d46212e08e0d73ed891a66213a6813075.tar.gz
gnunet-3140154d46212e08e0d73ed891a66213a6813075.zip
refactoring datastore API to use MQ API, also fixing misc. bugs in new mysql backend
Diffstat (limited to 'src/datastore/datastore.h')
-rw-r--r--src/datastore/datastore.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/src/datastore/datastore.h b/src/datastore/datastore.h
index 5767ae6a0..dc3d9d1f2 100644
--- a/src/datastore/datastore.h
+++ b/src/datastore/datastore.h
@@ -106,12 +106,10 @@ struct ReleaseReserveMessage
106 * Message to the datastore service asking about specific 106 * Message to the datastore service asking about specific
107 * content. 107 * content.
108 */ 108 */
109struct GetMessage 109struct GetKeyMessage
110{ 110{
111 /** 111 /**
112 * Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET. Size 112 * Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET_KEY.
113 * can either be "sizeof(struct GetMessage)" or
114 * "sizeof(struct GetMessage) - sizeof(struct GNUNET_HashCode)"!
115 */ 113 */
116 struct GNUNET_MessageHeader header; 114 struct GNUNET_MessageHeader header;
117 115
@@ -126,8 +124,7 @@ struct GetMessage
126 uint64_t offset GNUNET_PACKED; 124 uint64_t offset GNUNET_PACKED;
127 125
128 /** 126 /**
129 * Desired key (optional). Check the "size" of the 127 * Desired key.
130 * header to see if the key is actually present.
131 */ 128 */
132 struct GNUNET_HashCode key; 129 struct GNUNET_HashCode key;
133 130
@@ -135,6 +132,30 @@ struct GetMessage
135 132
136 133
137/** 134/**
135 * Message to the datastore service asking about specific
136 * content.
137 */
138struct GetMessage
139{
140 /**
141 * Type is #GNUNET_MESSAGE_TYPE_DATASTORE_GET.
142 */
143 struct GNUNET_MessageHeader header;
144
145 /**
146 * Desired content type. (actually an enum GNUNET_BLOCK_Type)
147 */
148 uint32_t type GNUNET_PACKED;
149
150 /**
151 * Offset of the result.
152 */
153 uint64_t offset GNUNET_PACKED;
154
155};
156
157
158/**
138 * Message to the datastore service asking about zero 159 * Message to the datastore service asking about zero
139 * anonymity content. 160 * anonymity content.
140 */ 161 */