summaryrefslogtreecommitdiffhomepage
path: root/device.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-03-27 19:08:24 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-03-27 19:08:24 +0200
commit530d9f3cb5137a36ad33d86fb52f94dde81208f4 (patch)
tree7d243b30e4430ada659ebdf6e0b6f9cdcba579f7 /device.h
parenta3958947c58b98da2265d42e61b24f7d268c820c (diff)
add a callback for dumping device status information
Diffstat (limited to 'device.h')
-rw-r--r--device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/device.h b/device.h
index bf93ebc..9ceeff5 100644
--- a/device.h
+++ b/device.h
@@ -11,6 +11,7 @@ typedef int (*device_state_cb)(struct device *, bool up);
struct device_type {
const char *name;
+ void (*dump_status)(struct device *, struct blob_buf *buf);
int (*check_state)(struct device *);
void (*free)(struct device *);
};