]> wimlib.net Git - wimlib/blobdiff - src/dentry.h
fd table fix
[wimlib] / src / dentry.h
index fd65b02dbab008d207434abbe023c6ce1cb7c31b..50021322f5cbbe0d6e1eebf15d377b3c5bd0b2cb 100644 (file)
@@ -83,6 +83,14 @@ static inline void destroy_ads_entry(struct ads_entry *entry)
        memset(entry, 0, sizeof(entry));
 }
 
+static inline bool ads_entry_has_name(const struct ads_entry *entry,
+                                     const char *name, size_t name_len)
+{
+       if (entry->stream_name_utf8_len != name_len)
+               return false;
+       return memcmp(entry->stream_name_utf8, name, name_len) == 0;
+}
+
 
 /* In-memory structure for a directory entry.  There is a directory tree for
  * each image in the WIM.  */