diff --git a/include/ntfs-3g/security.h b/include/ntfs-3g/security.h index 4a90ee14..1475bdba 100644 --- a/include/ntfs-3g/security.h +++ b/include/ntfs-3g/security.h @@ -39,7 +39,7 @@ struct MAPPING { }; /* - * Security context, needed by most security functions + * Entry in the security cache */ struct SECURITY_ENTRY { @@ -49,6 +49,10 @@ struct SECURITY_ENTRY { unsigned int valid:1; } ; +/* + * Header of the security cache + */ + struct SECURITY_HEAD { int first; int last; @@ -58,11 +62,19 @@ struct SECURITY_HEAD { unsigned long writes; } ; +/* + * The whole security cache + */ + struct SECURITY_CACHE { struct SECURITY_HEAD head; - struct SECURITY_ENTRY cachetable[1]; + struct SECURITY_ENTRY cachetable[1]; /* array of variable size */ } ; +/* + * Security context, needed by most security functions + */ + struct SECURITY_CONTEXT { ntfs_volume *vol; struct MAPPING *usermapping;