Apps Components Interfaces All Files Source Tree | source: tos.interfaces.AttrUse.nc |
Interface for using Attributes. Attributes provided a generic mechanism for registering named attribute-value pairs and retrieving their values.
See lib/Attributes/... for examples of components that register attributes
See interfaces/Attr.h for the data structures used in this interface
Implemented by lib/Attr.td
Author: | Wei Hong (wei.hong@intel-research.net) |
Commands |
Events |
Commands - Details |
Parameters: |
attrIdx - THe (0-based) index of the attribute of interest |
Returns: | A pointer to the attribute descriptior, or NULL if no such attribute exists. |
Returns: | The number of attributes currently registered with the system. |
Returns: | A list of all the attributes in the system |
Parameters: |
name - The name of the attribute to fetch resultBuf - The buffer to write the value into (must be at least sizeOf(AttrDescPtr.type) long) errorNo - (on return) The error code, if any (see SchemaType.h for a list of error codes.) Note that the error code may be SCHEMA_RESULT_PENDING, in which case a getAttrDone event will be fired at some point to indicate that the data has been written into resultBuf. |
Parameters: |
name - The attribute to set attrVal - The value to set it to |
Events - Details |
Parameters: |
name - The name of the command that finished resultBuf - The buffer that the value was written into errorNo - The result code from the get command |