The clsagfw_create_attr_iterator()
function creates an iterator to access all the attributes of the current resource.
clsagfwret clsagfw_create_attr_iterator(const clsagfw_aectx *pAeCtx, clsagfw_ai_flags flags);
pAeCtx
: Agent framework context pointer that is passed to entry points
flags
: CLSAGFW_ALL_ATTRS
: All attributes of the resource
CLSAGFW_MODIFIED_ATTRS
: Only modified attributes
Agents call this function to create an iterator to navigate through all the attributes of the resource. This is useful for agents managing multiple resources of different types. The iterator is an internal iterator maintained in the agent framework context. Each attribute is retrieved by calling the clsagfw_get_attr_from_iterator()
API. Modified attributes can be accessed only in the MODIFY entry point. At any given time, an entry point can create only one iterator. All subsequent attempts to create an iterator gets the pointer to the iterator that is already created.