summaryrefslogtreecommitdiffstats
path: root/include/param.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-05-23 13:36:21 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-05-23 15:40:22 +0200
commitc5fa2998624312b176af954f956c6219d52061df (patch)
treefda38b2ccc2d1450502516ae0e3fd22c5b30b349 /include/param.h
parent28278839116d9e29132a61c2c0c612900c244708 (diff)
downloadbarebox-c5fa2998624312b176af954f956c6219d52061df.tar.gz
barebox-c5fa2998624312b176af954f956c6219d52061df.tar.xz
param: Add info function
Some parameters may wish to provide some information about their meaning or possible values. Provide an info callback for parameters. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/param.h')
-rw-r--r--include/param.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/param.h b/include/param.h
index 4af2d09c4c..54dea568bb 100644
--- a/include/param.h
+++ b/include/param.h
@@ -12,6 +12,7 @@ typedef unsigned long IPaddr_t;
struct param_d {
const char* (*get)(struct device_d *, struct param_d *param);
int (*set)(struct device_d *, struct param_d *param, const char *val);
+ void (*info)(struct param_d *param);
unsigned int flags;
char *name;
char *value;