Generic attribute emulation: Export function __get_attribute_dir_path()

which returns the attribute directory for a given file's stat.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-03-22 20:09:05 +00:00
parent 1623d2e1ad
commit b78dc1e8dd

View File

@ -598,3 +598,15 @@ _kern_remove_attr(int fd, const char *name)
return B_OK; return B_OK;
} }
// __get_attribute_dir_path
extern "C" bool __get_attribute_dir_path(const struct stat* st, char* buffer);
bool
__get_attribute_dir_path(const struct stat* st, char* buffer)
{
NodeRef ref(*st);
string path = get_attribute_dir_path(ref);
strcpy(buffer, path.c_str());
return true;
}