aboutsummaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:46:47 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commit168068fb3d7da3d95bf37b21f39347f48d38497f (patch)
treef67394a7a39bb129368ba8df6c7978f4b0a0c344 /include/env.h
parentc7694dd4837ba12db3bcda872a1047a44566e0e8 (diff)
downloadu-boot-168068fb3d7da3d95bf37b21f39347f48d38497f.zip
u-boot-168068fb3d7da3d95bf37b21f39347f48d38497f.tar.gz
u-boot-168068fb3d7da3d95bf37b21f39347f48d38497f.tar.bz2
env: Move env_set_ulong() to env.h
Move env_set_ulong() over to the new header file. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index 5c780f3..8898b78 100644
--- a/include/env.h
+++ b/include/env.h
@@ -64,6 +64,15 @@ int env_match(unsigned char *name, int index);
int env_get_f(const char *name, char *buf, unsigned int len);
/**
+ * env_set_ulong() - set an environment variable to an integer
+ *
+ * @varname: Variable to adjust
+ * @value: Value to set for the variable (will be converted to a string)
+ * @return 0 if OK, 1 on error
+ */
+int env_set_ulong(const char *varname, ulong value);
+
+/**
* env_set_hex() - set an environment variable to a hex value
*
* @varname: Variable to adjust