OSDN Git Service

DO NOT MERGE verity_verifier: Support verifying images with FEC.
[android-x86/system-extras.git] / ext4_utils / wipe.h
index ecde9c1..c7a86fa 100644 (file)
 #ifndef _WIPE_H_
 #define _WIPE_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include "ext4_utils.h"
 
+/* Set WIPE_IS_SUPPORTED to 1 if the current platform supports
+ * wiping of block devices. 0 otherwise. For now, only Linux does.
+ */
+#ifdef __linux__
+#  define WIPE_IS_SUPPORTED 1
+#else
+#  define WIPE_IS_SUPPORTED 0
+#endif
+
 int wipe_block_device(int fd, s64 len);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif