diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-07-02 12:51:48 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-07-02 12:51:48 +0000 |
commit | 0255e3026f4553ecfe5098d7f96c05ffca982a52 (patch) | |
tree | 0c27cee84382d1f568e64f84d03b4627b4d3e617 /src/include/gnunet_sensor_service.h | |
parent | 13c92b1966accce020a6a5d3f90b252c55a4ad2f (diff) | |
download | gnunet-0255e3026f4553ecfe5098d7f96c05ffca982a52.tar.gz gnunet-0255e3026f4553ecfe5098d7f96c05ffca982a52.zip |
sensor: completed reporting to collection point
Diffstat (limited to 'src/include/gnunet_sensor_service.h')
-rw-r--r-- | src/include/gnunet_sensor_service.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/gnunet_sensor_service.h b/src/include/gnunet_sensor_service.h index 19dcbbb75..1bfed345a 100644 --- a/src/include/gnunet_sensor_service.h +++ b/src/include/gnunet_sensor_service.h | |||
@@ -223,6 +223,45 @@ struct SensorInfoShort | |||
223 | 223 | ||
224 | }; | 224 | }; |
225 | 225 | ||
226 | GNUNET_NETWORK_STRUCT_BEGIN | ||
227 | |||
228 | /** | ||
229 | * Used to communicate sensor readings to | ||
230 | * collection points (SENSORDASHBAORD service) | ||
231 | */ | ||
232 | struct GNUNET_SENSOR_Reading | ||
233 | { | ||
234 | |||
235 | /** | ||
236 | * Size of the sensor name value, allocated | ||
237 | * at position 0 after this struct | ||
238 | */ | ||
239 | size_t sensorname_size; | ||
240 | |||
241 | /** | ||
242 | * First part of sensor version number | ||
243 | */ | ||
244 | uint16_t sensorversion_major; | ||
245 | |||
246 | /** | ||
247 | * Second part of sensor version number | ||
248 | */ | ||
249 | uint16_t sensorversion_minor; | ||
250 | |||
251 | /** | ||
252 | * Timestamp of recorded reading | ||
253 | */ | ||
254 | uint64_t timestamp; | ||
255 | |||
256 | /** | ||
257 | * Size of reading value, allocation | ||
258 | * at poistion 1 after this struct | ||
259 | */ | ||
260 | size_t value_size; | ||
261 | |||
262 | }; | ||
263 | GNUNET_NETWORK_STRUCT_END | ||
264 | |||
226 | /** | 265 | /** |
227 | * Type of an iterator over sensor definitions. | 266 | * Type of an iterator over sensor definitions. |
228 | * | 267 | * |