projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add a callback for dumping device status information
[project/netifd.git]
/
device.h
diff --git
a/device.h
b/device.h
index
bf93ebc
..
9ceeff5
100644
(file)
--- 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 *);
};