+
+static int handle_system_health(__attribute__((unused))
+ ros_connection_t *c, /* {{{ */
+ const ros_system_health_t *r,
+ __attribute__((unused)) void *user_data) {
+ cr_data_t *rd;
+
+ if ((r == NULL) || (user_data == NULL))
+ return (EINVAL);
+ rd = user_data;
+
+ cr_submit_gauge(rd, "gauge", "voltage", (gauge_t)r->voltage);
+ cr_submit_gauge(rd, "gauge", "temperature", (gauge_t)r->temperature);
+
+ return (0);
+} /* }}} int handle_system_health */