#ifndef _KERN_PAGE_DECRYPT_H
#define _KERN_PAGE_DECRYPT_H
+#include <mach/machine.h>
+
/*
* Interface for DSMOS
*/
void (*crypt_end)(void *crypt_ops);
/* Private data for the crypter */
void *crypt_ops;
+ volatile int crypt_refcnt;
};
typedef struct pager_crypt_info pager_crypt_info_t;
+struct crypt_file_data {
+ char *filename;
+ cpu_type_t cputype;
+ cpu_subtype_t cpusubtype;
+};
+typedef struct crypt_file_data crypt_file_data_t;
+
typedef int (*text_crypter_create_hook_t)(struct pager_crypt_info *crypt_info,
const char *id, void *crypt_data);
extern void text_crypter_create_hook_set(text_crypter_create_hook_t hook);