summaryrefslogtreecommitdiffstats
path: root/include/cmdlinepart.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-02-06 08:59:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-12 09:33:43 +0100
commit39f6392d93a81daeaaad1496b27fc157d1aa9333 (patch)
tree003fd4532870bb9d9012d3b54a5efd7ba8948139 /include/cmdlinepart.h
parent7649473f40fc037263c1c0a9f54ffa5434080d78 (diff)
downloadbarebox-39f6392d93a81daeaaad1496b27fc157d1aa9333.tar.gz
barebox-39f6392d93a81daeaaad1496b27fc157d1aa9333.tar.xz
move cmdline partition parsing code to separate file
So it's no longer local to the addpart/delpart code and can be used from other code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/cmdlinepart.h')
-rw-r--r--include/cmdlinepart.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/cmdlinepart.h b/include/cmdlinepart.h
new file mode 100644
index 0000000000..5ffa3c4aa3
--- /dev/null
+++ b/include/cmdlinepart.h
@@ -0,0 +1,11 @@
+#ifndef __CMD_LINE_PART_H
+#define __CMD_LINE_PART_H
+
+#define CMDLINEPART_ADD_DEVNAME (1 << 0)
+
+int cmdlinepart_do_parse_one(char *devname, const char *partstr,
+ char **endp, loff_t *offset,
+ loff_t devsize, size_t *retsize,
+ unsigned int partition_flags);
+
+#endif /* __CMD_LINE_PART_H */