13 #ifndef MAC_RESOURCE_FORK_H
14 #define MAC_RESOURCE_FORK_H
18 #if defined(__APPLE__)
31 static bool hasNamedResource(
const std::string &filename,
const std::string &name, uint32_t typeAsFourCharCode);
34 static void updateNamedResource(
const std::string &filename,
const std::string &name, uint32_t typeAsFourCharCode,
const void *value,
size_t size);
37 static void removeNamedResource(
const std::string &filename,
const std::string &name, uint32_t typeAsFourCharCode);
Add data to resource fork of files on HFS & APFS volumes.
static bool hasNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode)
Check for resource identified by name and type associated with path.
static void updateNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode, const void *value, size_t size)
Associate name, type, and value together as resource of path.
static void removeNamedResource(const std::string &filename, const std::string &name, uint32_t typeAsFourCharCode)
Remove resource identified by name and type associated with path.
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.