Developer

API Reference

ICAMERA_QueryInterface()

Brew Release
Brew MP 1.0.2
See Also
None
Description
This function can be used to - Get a pointer to an interface or data based on the input class ID
- Query an extended version of the ICamera-derived class
- Support version compatibility
Parameters
  • pICamera
    [in]:
    Pointer to ICamera Interface.
  • clsReq
    [in]:
    A globally unique id to identify the entity (interface or data) that we are trying to query.
  • ppo
    [out]:
    Pointer to the interface or data that we want to retrieve. If the value passed back is NULL, the interface or data that we query are not available.
Interface
ICAMERA
Prototype
    int ICAMERA_QueryInterface
    (
       ICamera * pICamera,
       AEECLSID clsReq,
       void ** ppo
    )
Return
SUCCESS: Successful. Synchronous operation completed. Otherwise: an error code.
Side Effect
If an interface is retrieved, then this function increments its reference count.
If a data structure is retrieved, then a pointer to the internal structure is given and user should not free it.
Comment
This function is always synchronous. If ppo is back a NULL pointer, the interface or data that we query is not available.
  • Follow