]> wimlib.net Git - wimlib/blobdiff - src/security.h
Initial update functionality (library only)
[wimlib] / src / security.h
index e0b83ac61724eddcff209c6f50230cbd50206a47..e20ad168451fd698f4ce2609c1db26959a861b68 100644 (file)
@@ -1,10 +1,3 @@
-/*
- *
- * Macros and structures for security descriptors
- *
- * From Microsoft's public documentation and the WINE project
- */
-
 #include "util.h"
 #include "rbtree.h"
 #include "sha1.h"
 struct sd_set {
        struct wim_security_data *sd;
        struct rb_root rb_root;
+       int32_t orig_num_entries;
 };
-void destroy_sd_set(struct sd_set *sd_set);
-int lookup_sd(struct sd_set *set, const u8 hash[SHA1_HASH_SIZE]);
-int sd_set_add_sd(struct sd_set *sd_set, const char descriptor[],
-                 size_t size);
+extern void
+destroy_sd_set(struct sd_set *sd_set, bool rollback);
+
+extern int
+lookup_sd(struct sd_set *set, const u8 hash[SHA1_HASH_SIZE]);
+
+extern int
+sd_set_add_sd(struct sd_set *sd_set, const char descriptor[],
+             size_t size);
+
+extern int
+init_sd_set(struct sd_set *sd_set, struct wim_security_data *sd);
 
 #endif /* _WIMLIB_SECURITY_H */