summaryrefslogtreecommitdiffstats
path: root/mtdutils/mtdutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'mtdutils/mtdutils.h')
-rw-r--r--mtdutils/mtdutils.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/mtdutils/mtdutils.h b/mtdutils/mtdutils.h
index 8059d6a4d..6cbf37eec 100644
--- a/mtdutils/mtdutils.h
+++ b/mtdutils/mtdutils.h
@@ -19,10 +19,6 @@
#include <sys/types.h> // for size_t, etc.
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct MtdPartition MtdPartition;
int mtd_scan_partitions(void);
@@ -55,8 +51,11 @@ ssize_t mtd_write_data(MtdWriteContext *, const char *data, size_t data_len);
off_t mtd_erase_blocks(MtdWriteContext *, int blocks); /* 0 ok, -1 for all */
int mtd_write_close(MtdWriteContext *);
-#ifdef __cplusplus
-}
-#endif
+struct MtdPartition {
+ int device_index;
+ unsigned int size;
+ unsigned int erase_size;
+ char *name;
+};
#endif // MTDUTILS_H_