summaryrefslogtreecommitdiffstats
path: root/include/parseopt.h
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2018-02-01 11:37:15 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-05 08:26:22 +0100
commit9eb45f4f3c3f038abbd32890c9fa95a1ebb302cb (patch)
treef47f696108471dd0e79bfab3f7187450eba8f1c2 /include/parseopt.h
parentd0d548870179ec96d809bc7559531c35b7f77847 (diff)
downloadbarebox-9eb45f4f3c3f038abbd32890c9fa95a1ebb302cb.tar.gz
barebox-9eb45f4f3c3f038abbd32890c9fa95a1ebb302cb.tar.xz
fs/parseopt: Add parseopt_llu_suffix
Add an option parser using strtoull_suffix that can be used to parse a loop mount offset option. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/parseopt.h')
-rw-r--r--include/parseopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/parseopt.h b/include/parseopt.h
index 1f9763f8c9..273a371ac3 100644
--- a/include/parseopt.h
+++ b/include/parseopt.h
@@ -1,5 +1,7 @@
#ifndef __PARSEOPT_H__
#define __PARSEOPT_H__
+void parseopt_llu_suffix(const char *options, const char *opt,
+ unsigned long long *val);
void parseopt_b(const char *options, const char *opt, bool *val);
void parseopt_hu(const char *options, const char *opt, unsigned short *val);