aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorOmar Tarabai <tarabai@devegypt.com>2014-07-27 01:23:58 +0000
committerOmar Tarabai <tarabai@devegypt.com>2014-07-27 01:23:58 +0000
commit0ea6bab62cd1d29e32c5d442d865e1b6bf82bef1 (patch)
treebde73567c1341bdff909f64de851dd7178e58ca3 /src/include
parent29f73bb496a579a5a7600b3e3b2ab88b859bee65 (diff)
downloadgnunet-0ea6bab62cd1d29e32c5d442d865e1b6bf82bef1.tar.gz
gnunet-0ea6bab62cd1d29e32c5d442d865e1b6bf82bef1.zip
sensor: completed update functionality
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gnunet_sensor_util_lib.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/include/gnunet_sensor_util_lib.h b/src/include/gnunet_sensor_util_lib.h
index a9651bc1b..090465140 100644
--- a/src/include/gnunet_sensor_util_lib.h
+++ b/src/include/gnunet_sensor_util_lib.h
@@ -270,24 +270,29 @@ struct GNUNET_SENSOR_SensorFullMessage
270 struct GNUNET_MessageHeader header; 270 struct GNUNET_MessageHeader header;
271 271
272 /** 272 /**
273 * Size of the config file carrying full sensor information. 273 * Size of sensor name.
274 * Allocated at position 0 after this struct. 274 * Name allocated at position 0 after this struct.
275 */ 275 */
276 uint16_t cfg_size; 276 uint16_t sensorname_size;
277
278 /**
279 * Size of the sensor definition file carrying full sensor information.
280 * The file content allocated at position 1 after this struct.
281 */
282 uint16_t sensorfile_size;
277 283
278 /** 284 /**
279 * Name of the file (usually script) associated with this sensor. 285 * Name of the file (usually script) associated with this sensor.
280 * At the moment we only support having one file since that's all our sensors 286 * At the moment we only support having one file per sensor.
281 * need at the moment. 287 * The file name is allocated at position 2 after this struct.
282 * The file name is allocated at position 1 after this struct.
283 */ 288 */
284 uint16_t scriptname_size; 289 uint16_t scriptname_size;
285 290
286 /** 291 /**
287 * Size of the file (usually script) associated with this sensor. 292 * Size of the file (usually script) associated with this sensor.
288 * The file binary is allocated at position 2 after this struct. 293 * The file content is allocated at position 3 after this struct.
289 */ 294 */
290 uint16_t script_size; 295 uint16_t scriptfile_size;
291 296
292}; 297};
293 298