diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-07-29 14:01:37 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-07-29 14:01:37 +0000 |
commit | 5051244c80bd93e1599c5c39aeeefebaeef40d61 (patch) | |
tree | 5b64b237d5af7a25f2e75b150fbb3396a360820e /src/include | |
parent | 764a37c57035bb131d4cf265bf24396c1e422efb (diff) | |
download | gnunet-5051244c80bd93e1599c5c39aeeefebaeef40d61.tar.gz gnunet-5051244c80bd93e1599c5c39aeeefebaeef40d61.zip |
sensor, sensordashboard: doxygen fixes + indentation
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_sensor_service.h | 20 | ||||
-rw-r--r-- | src/include/gnunet_sensor_util_lib.h | 7 |
2 files changed, 14 insertions, 13 deletions
diff --git a/src/include/gnunet_sensor_service.h b/src/include/gnunet_sensor_service.h index eb4fbdc67..4ef2885e6 100644 --- a/src/include/gnunet_sensor_service.h +++ b/src/include/gnunet_sensor_service.h | |||
@@ -79,8 +79,9 @@ struct SensorInfoShort | |||
79 | * @param error message | 79 | * @param error message |
80 | */ | 80 | */ |
81 | typedef void (*GNUNET_SENSOR_SensorIteratorCB) (void *cls, | 81 | typedef void (*GNUNET_SENSOR_SensorIteratorCB) (void *cls, |
82 | const struct SensorInfoShort *sensor, | 82 | const struct SensorInfoShort * |
83 | const char *err_msg); | 83 | sensor, const char *err_msg); |
84 | |||
84 | 85 | ||
85 | /** | 86 | /** |
86 | * Continuation called with a status result. | 87 | * Continuation called with a status result. |
@@ -88,8 +89,8 @@ typedef void (*GNUNET_SENSOR_SensorIteratorCB) (void *cls, | |||
88 | * @param cls closure | 89 | * @param cls closure |
89 | * @param emsg error message, NULL on success | 90 | * @param emsg error message, NULL on success |
90 | */ | 91 | */ |
91 | typedef void (*GNUNET_SENSOR_Continuation)(void *cls, | 92 | typedef void (*GNUNET_SENSOR_Continuation) (void *cls, const char *emsg); |
92 | const char *emsg); | 93 | |
93 | 94 | ||
94 | /** | 95 | /** |
95 | * Connect to the sensor service. | 96 | * Connect to the sensor service. |
@@ -99,13 +100,15 @@ typedef void (*GNUNET_SENSOR_Continuation)(void *cls, | |||
99 | struct GNUNET_SENSOR_Handle * | 100 | struct GNUNET_SENSOR_Handle * |
100 | GNUNET_SENSOR_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); | 101 | GNUNET_SENSOR_connect (const struct GNUNET_CONFIGURATION_Handle *cfg); |
101 | 102 | ||
103 | |||
102 | /** | 104 | /** |
103 | * Disconnect from the sensor service | 105 | * Disconnect from the sensor service |
104 | * | 106 | * |
105 | * @param h handle to disconnect | 107 | * @param h handle to disconnect |
106 | */ | 108 | */ |
107 | void | 109 | void |
108 | GNUNET_SENSOR_disconnect(struct GNUNET_SENSOR_Handle *h); | 110 | GNUNET_SENSOR_disconnect (struct GNUNET_SENSOR_Handle *h); |
111 | |||
109 | 112 | ||
110 | /** | 113 | /** |
111 | * Client asking to iterate all available sensors | 114 | * Client asking to iterate all available sensors |
@@ -120,9 +123,10 @@ GNUNET_SENSOR_disconnect(struct GNUNET_SENSOR_Handle *h); | |||
120 | */ | 123 | */ |
121 | struct GNUNET_SENSOR_SensorIteratorContext * | 124 | struct GNUNET_SENSOR_SensorIteratorContext * |
122 | GNUNET_SENSOR_iterate_sensors (struct GNUNET_SENSOR_Handle *h, | 125 | GNUNET_SENSOR_iterate_sensors (struct GNUNET_SENSOR_Handle *h, |
123 | struct GNUNET_TIME_Relative timeout, | 126 | struct GNUNET_TIME_Relative timeout, |
124 | const char* sensorname, size_t sensorname_len, | 127 | const char *sensorname, size_t sensorname_len, |
125 | GNUNET_SENSOR_SensorIteratorCB callback, void *callback_cls); | 128 | GNUNET_SENSOR_SensorIteratorCB callback, |
129 | void *callback_cls); | ||
126 | 130 | ||
127 | #if 0 /* keep Emacsens' auto-indent happy */ | 131 | #if 0 /* keep Emacsens' auto-indent happy */ |
128 | { | 132 | { |
diff --git a/src/include/gnunet_sensor_util_lib.h b/src/include/gnunet_sensor_util_lib.h index 090465140..e048cb9f0 100644 --- a/src/include/gnunet_sensor_util_lib.h +++ b/src/include/gnunet_sensor_util_lib.h | |||
@@ -188,12 +188,11 @@ struct GNUNET_SENSOR_SensorInfo | |||
188 | }; | 188 | }; |
189 | 189 | ||
190 | GNUNET_NETWORK_STRUCT_BEGIN | 190 | GNUNET_NETWORK_STRUCT_BEGIN |
191 | |||
192 | /** | 191 | /** |
193 | * Used to communicate sensor readings to | 192 | * Used to communicate sensor readings to |
194 | * collection points (SENSORDASHBAORD service) | 193 | * collection points (SENSORDASHBAORD service) |
195 | */ | 194 | */ |
196 | struct GNUNET_SENSOR_ReadingMessage | 195 | struct GNUNET_SENSOR_ReadingMessage |
197 | { | 196 | { |
198 | 197 | ||
199 | /** | 198 | /** |
@@ -297,8 +296,6 @@ struct GNUNET_SENSOR_SensorFullMessage | |||
297 | }; | 296 | }; |
298 | 297 | ||
299 | GNUNET_NETWORK_STRUCT_END | 298 | GNUNET_NETWORK_STRUCT_END |
300 | |||
301 | |||
302 | /** | 299 | /** |
303 | * Given two version numbers as major and minor, compare them. | 300 | * Given two version numbers as major and minor, compare them. |
304 | * | 301 | * |
@@ -307,7 +304,7 @@ GNUNET_NETWORK_STRUCT_END | |||
307 | * @param v2_major First part of second version number | 304 | * @param v2_major First part of second version number |
308 | * @param v2_minor Second part of second version number | 305 | * @param v2_minor Second part of second version number |
309 | */ | 306 | */ |
310 | int | 307 | int |
311 | GNUNET_SENSOR_version_compare (uint16_t v1_major, uint16_t v1_minor, | 308 | GNUNET_SENSOR_version_compare (uint16_t v1_major, uint16_t v1_minor, |
312 | uint16_t v2_major, uint16_t v2_minor); | 309 | uint16_t v2_major, uint16_t v2_minor); |
313 | 310 | ||