]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/imageboot.h
xnu-6153.101.6.tar.gz
[apple/xnu.git] / bsd / sys / imageboot.h
index 7b0f11d9eb4a335d216852da4b48d3ff2cd516f8..e42f1e39d55f2d725b462cf2dc54b8ac65f32f66 100644 (file)
 #ifndef _IMAGEBOOT_H_
 #define _IMAGEBOOT_H_
 
-int     imageboot_needed(void);
-void    imageboot_setup(void);
+typedef enum imageboot_type {
+       IMAGEBOOT_NONE,
+       IMAGEBOOT_DMG,
+       IMAGEBOOT_LOCKER,
+} imageboot_type_t;
+
+imageboot_type_t        imageboot_needed(void);
+void    imageboot_setup(imageboot_type_t type);
 int     imageboot_format_is_valid(const char *root_path);
-int     imageboot_mount_image(const char *root_path, int height);
+int     imageboot_mount_image(const char *root_path, int height, imageboot_type_t type);
 
 #define IMAGEBOOT_CONTAINER_ARG         "container-dmg"
 #define IMAGEBOOT_ROOT_ARG              "root-dmg"
 #define IMAGEBOOT_AUTHROOT_ARG          "auth-root-dmg"
+#if CONFIG_LOCKERBOOT
+#define IMAGEBOOT_LOCKER_ARG "locker"
+#define LOCKERFS_NAME "lockerfs"
+#endif
 
 #endif