Get the specified attributes from the object.
This call may block for an indefinite period.
No extra references are added to the returned attributes pointer. During this call you may not access the attributes in any way.
The object to get attributes from.
the types of the attributes to get
optional cancellation object, or
the number of attr_types
a pointer to the filled in attributes if successful, or