]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/env_attr.h
nand: lpc32xx: add SLC NAND controller support
[karo-tx-uboot.git] / include / env_attr.h
index b82fec91be107854104ebea6242455108256c8f3..7bfb7f30d1ba71bb8e011443e9d7f151ea3f0b65 100644 (file)
  *     attributes = [^,:\s]*
  *     entry = name[:attributes]
  *     list = entry[,list]
- * It will call the "callback" function with the "name" and attribute as "value"
+ * It will call the "callback" function with the "name" and "attributes"
  * The callback may return a non-0 to abort the list walk.
  * This return value will be passed through to the caller.
  * 0 is returned on success.
  */
-extern int env_attr_walk(const char *attr_list,
-       int (*callback)(const char *name, const char *value));
+int env_attr_walk(const char *attr_list,
+       int (*callback)(const char *name, const char *attributes, void *priv),
+       void *priv);
 
 /*
  * env_attr_lookup takes as input an "attr_list" with the same form as above.
@@ -33,7 +34,6 @@ extern int env_attr_walk(const char *attr_list,
  * "attr_list" is NULL.
  * Returns 0 on success.
  */
-extern int env_attr_lookup(const char *attr_list, const char *name,
-       char *attributes);
+int env_attr_lookup(const char *attr_list, const char *name, char *attributes);
 
 #endif /* __ENV_ATTR_H__ */