CMPI 2.1.0 API
|
Macros | |
#define | CMRelease(obj) |
Release an encapsulated data type object. More... | |
#define | CMClone(obj, rc) |
Clone an encapsulated data type object. More... | |
MB Functions of Encapsulated Data Types.
The convenience functions in this group call functions on encapsulated data type objects.
The factory functions creating encapsulated data type objects are covered in MB Functions in Broker Function Tables.
They simplify the code by eliminating the references to function tables.
#define CMRelease | ( | obj | ) |
Release an encapsulated data type object.
CMRelease() releases an encapsulated data type object, by calling the release() function in the function table of the object.
This indicates to the MB that the object (including any objects it contains) will no longer be used by the MI. The MB may free the resources associated with the object during the call to this function, or later during some garbage collection cycle.
obj | Points to the encapsulated data type object to be released. |
CMPI_RC_OK
- Function successful. CMPI_RC_ERR_INVALID_HANDLE
- The rslt
handle is invalid.#define CMClone | ( | obj, | |
rc | |||
) |
Clone an encapsulated data type object.
CMClone() clones an encapsulated data type object, by calling the clone() function in the function table of the object.
obj | Points to the encapsulated data type object to be cloned. | |
[out] | rc | Function return status (suppressed when NULL). |
If successful, returns a pointer to the copied clone of the object defined by obj
.
The returned object shall be explicitly released by the MI using its release() function, or the CMRelease() macro.
If not successful, returns NULL.
CMPI_RC_OK
Operation successful. CMPI_RC_ERR_INVALID_HANDLE
The ef
handle is invalid.