diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-08-12 10:57:54 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-08-12 10:57:54 +0000 |
commit | 4ec038ad1cefcec2eaa60af61b8e973c27c4cf09 (patch) | |
tree | 237bdb6ee9103831ee12ec3417c972fdf48e364f /src/include | |
parent | d26fff163ec1d081db3293daf9dd566e74f3fde5 (diff) | |
download | gnunet-4ec038ad1cefcec2eaa60af61b8e973c27c4cf09.tar.gz gnunet-4ec038ad1cefcec2eaa60af61b8e973c27c4cf09.zip |
sensor: force fake anomaly
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_sensor_service.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_sensor_service.h b/src/include/gnunet_sensor_service.h index a31b20e52..59e4248ab 100644 --- a/src/include/gnunet_sensor_service.h +++ b/src/include/gnunet_sensor_service.h | |||
@@ -145,6 +145,23 @@ GNUNET_SENSOR_iterate (struct GNUNET_SENSOR_Handle *h, | |||
145 | GNUNET_SENSOR_SensorIterateCB callback, | 145 | GNUNET_SENSOR_SensorIterateCB callback, |
146 | void *callback_cls); | 146 | void *callback_cls); |
147 | 147 | ||
148 | |||
149 | /** | ||
150 | * Force an anomaly status change on a given sensor. If the sensor reporting | ||
151 | * module is running, this will trigger the usual reporting logic, therefore, | ||
152 | * please only use this in a test environment. | ||
153 | * | ||
154 | * Also, if the sensor analysis module is running, it might conflict and cause | ||
155 | * undefined behaviour if it detects a real anomaly. | ||
156 | * | ||
157 | * @param h Service handle | ||
158 | * @param sensor_name Sensor name to set the anomaly status | ||
159 | * @param anomalous The desired status: #GNUNET_YES / #GNUNET_NO | ||
160 | */ | ||
161 | void | ||
162 | GNUNET_SENSOR_force_anomaly (struct GNUNET_SENSOR_Handle *h, char *sensor_name, | ||
163 | int anomalous); | ||
164 | |||
148 | #if 0 /* keep Emacsens' auto-indent happy */ | 165 | #if 0 /* keep Emacsens' auto-indent happy */ |
149 | { | 166 | { |
150 | #endif | 167 | #endif |