summaryrefslogtreecommitdiffstats
path: root/include/param.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2007-07-05 18:01:56 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-07-05 18:01:56 +0200
commit7baa6289fe0e45039eae0b1073f774f94371da56 (patch)
tree62ff69bf7274b4baef2207cc327d4e3c874397b9 /include/param.h
parent88673469c661e639fea91bf1b4092962ed5f17ae (diff)
downloadbarebox-7baa6289fe0e45039eae0b1073f774f94371da56.tar.gz
barebox-7baa6289fe0e45039eae0b1073f774f94371da56.tar.xz
svn_rev_469
- make some more char * const - dev_add_parameter -> dev_add_param
Diffstat (limited to 'include/param.h')
-rw-r--r--include/param.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/param.h b/include/param.h
index 88e0b1940b..f69ced29ae 100644
--- a/include/param.h
+++ b/include/param.h
@@ -14,14 +14,15 @@ struct param_d {
char *value;
};
-char *dev_get_param(struct device_d *dev, const char *name);
+const char *dev_get_param(struct device_d *dev, const char *name);
int dev_set_param(struct device_d *dev, const char *name, const char *val);
struct param_d *get_param_by_name(struct device_d *dev, const char *name);
+int dev_add_param(struct device_d *dev, struct param_d *par);
+
+/* Convenience functions to handle a parameter as an ip address */
int dev_set_param_ip(struct device_d *dev, char *name, IPaddr_t ip);
IPaddr_t dev_get_param_ip(struct device_d *dev, char *name);
-int dev_add_parameter(struct device_d *dev, struct param_d *par);
-
int global_add_parameter(struct param_d *param);
#endif /* PARAM_H */