From f387921c31f178b91e4d750de3bf6195d13f294e Mon Sep 17 00:00:00 2001 From: "flatcap.org!flatcap" Date: Mon, 13 Jan 2003 20:05:15 +0000 Subject: [PATCH] export find_in_attrdef (Logical change 1.93) --- include/attrib.h | 3 +++ libntfs/attrib.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/include/attrib.h b/include/attrib.h index b48783db..cf9cd2ac 100644 --- a/include/attrib.h +++ b/include/attrib.h @@ -87,6 +87,9 @@ extern int ntfs_attr_lookup(const ATTR_TYPES type, const uchar_t *name, const VCN lowest_vcn, const u8 *val, const u32 val_len, ntfs_attr_search_ctx *ctx); +extern ATTR_DEF *ntfs_attr_find_in_attrdef(const ntfs_volume *vol, + const ATTR_TYPES type); + /** * ntfs_attrs_walk - syntactic sugar for walking all attributes in an inode * @ctx: initialised attribute search context diff --git a/libntfs/attrib.c b/libntfs/attrib.c index 35e9a8a1..54da6e39 100644 --- a/libntfs/attrib.c +++ b/libntfs/attrib.c @@ -1925,7 +1925,7 @@ void ntfs_attr_put_search_ctx(ntfs_attr_search_ctx *ctx) * ENOENT - The attribute @type is not specified in $AttrDef. * EINVAL - Invalid parameters (e.g. @vol is not valid). */ -static ATTR_DEF *ntfs_attr_find_in_attrdef(const ntfs_volume *vol, +ATTR_DEF *ntfs_attr_find_in_attrdef(const ntfs_volume *vol, const ATTR_TYPES type) { ATTR_DEF *ad;