int ok = SetFSObjAttributes(STRPTR obj, ULONG attr, struct hwos_StatStruct *st, struct hwTagList *tags);
obj
. The attr
parameter specifies which attributes to set. This can be a
combination of the following flags:
HWSETFSOATTR_FLAGS:
HWSETFSOATTR_TIME:
HWSETFSOATTR_COMMENT:
The actual attribute values are passed in the st
parameter which is a pointer
to a struct hwos_StatStruct
. struct hwos_StatStruct
looks like this:
struct hwos_StatStruct { int Type; // [ignored] DOSINT64 Size; // [ignored] ULONG Flags; // [in] struct hwos_DateStruct Time; // [in] struct hwos_DateStruct LastAccessTime; // [in] struct hwos_DateStruct CreationTime; // [in] STRPTR FullPath; // [ignored] STRPTR Comment; // [in] int LinkMode; // [ignored] STRPTR Container; // [ignored] }; |
Not all structure members are used by SetFSObjAttributes()
. The ones that
are marked [ignored]
don't have any function in SetFSObjAttributes()
.
The others are only used if the respective attribute has been set in the attr
bitmask (see above). Here is a description of those members:
Flags:
HWSETFSOATTR_FLAGS
attribute has been set (see above).
Time:
HWSETFSOATTR_TIME
attribute has been set (see above).
LastAccessTime:
HWSETFSOATTR_TIME
attribute has been set (see above).
CreationTime:
HWSETFSOATTR_TIME
attribute has been set (see above).
Comment:
HWSETFSOATTR_COMMENT
attribute has been set (see above).
The tags
argument will be set to a tag list that can contain the following
tags:
HWSETFSOATAG_USERTAGS:
pData
will point to a struct hwUserTagList
containing
a list of user tags passed by the Hollywood script. User tags are a way of passing additional information
from Hollywood scripts to plugin functions. See User tags for details.
struct hwos_StatStruct
containing the attribute valuesTrue
to indicate success, False
on failure