cmpi
|
#include <cmpi/cmpift.h>
Public Attributes | |
const int | ftVersion |
CMPIGcStat *(* | mark )(const CMPIBroker *mb, CMPIStatus *rc) |
CMPIStatus(* | release )(const CMPIBroker *mb, const CMPIGcStat *gc) |
void *(* | cmpiMalloc )(const CMPIBroker *mb, size_t size) |
void *(* | cmpiCalloc )(const CMPIBroker *mb, size_t, size_t) |
void *(* | cmpiRealloc )(const CMPIBroker *mb, void *, size_t) |
char *(* | cmpiStrDup )(const CMPIBroker *mb, const char *) |
void(* | cmpiFree )(const CMPIBroker *mb, void *) |
void(* | freeInstance )(const CMPIBroker *mb, CMPIInstance *inst) |
void(* | freeObjectPath )(const CMPIBroker *mb, CMPIObjectPath *obj) |
void(* | freeArgs )(const CMPIBroker *mb, CMPIArgs *args) |
void(* | freeString )(const CMPIBroker *mb, CMPIString *str) |
void(* | freeArray )(const CMPIBroker *mb, CMPIArray *array) |
void(* | freeDateTime )(const CMPIBroker *mb, CMPIDateTime *date) |
void(* | freeSelectExp )(const CMPIBroker *mb, CMPISelectExp *se) |
This structure is a table of pointers to memory specific  CIMOM services. This table is made available by the Management Broker, whenever a provider is loaded and initialized. This is an extension used by CIMOMs to support memory management enhancements.
void*(* _CMPIBrokerMemFT::cmpiCalloc) (const CMPIBroker *mb, size_t, size_t) |
This function shall return a pointer to the allocated memory, the memory will be initialized to zero.
mb | The broker. |
nElems | The number of elements to allocate. |
sizeElem | The number of elements to allocate. |
void(* _CMPIBrokerMemFT::cmpiFree) (const CMPIBroker *mb, void *) |
This function frees memory allocated via the cmpiMalloc, cmpiCalloc or cmpiRealloc functions.
mb | The broker. |
ptr | The memory to free. This memory MUST have been allocated via the cmpiMalloc, cmpiCalloc or cmpiRealloc functions. |
void*(* _CMPIBrokerMemFT::cmpiMalloc) (const CMPIBroker *mb, size_t size) |
Allocates uninitalized memory of the specified size.
mb | Specifies the broker. |
size | Specifies the amount of memory to allocate. |
void*(* _CMPIBrokerMemFT::cmpiRealloc) (const CMPIBroker *mb, void *, size_t) |
This function changes the size of the memory block pointed to by ptr which must have been returned by a previous call to cmpiMalloc or cmpiCalloc. See the ANSI-C function realloc for more information
mb | the broker. |
ptr | Pointer to previosuly allocated memory. Passing a pointer to this function which was not allocated explicitly by cmpiMalloc or cmpiCalloc is undefined. |
size | The new size of the memory block. |
char*(* _CMPIBrokerMemFT::cmpiStrDup) (const CMPIBroker *mb, const char *) |
This function returns a pointer to a new string which is a duplicate of the string src.
mb | The broker |
src | The string to duplicate |
void(* _CMPIBrokerMemFT::freeArgs) (const CMPIBroker *mb, CMPIArgs *args) |
Allows a MI to free memory associated to a CMPIArgs which was allocated via CMPIBrokerEncFT.newArgs. this function should be called when an instance is no longer being used by the MI. This function will free all contained objects.
mb | the broker. |
args | The argument to free. |
void(* _CMPIBrokerMemFT::freeArray) (const CMPIBroker *mb, CMPIArray *array) |
Allows a MI to free memory associated to a CMPIArray which was allocated via CMPIBrokerEncFT.newArray. this function should be called when an instance is no longer being used by the MI. This function will free all contained objects (e.g. the array elements).
mb | the broker. |
args | The string to free. |
void(* _CMPIBrokerMemFT::freeDateTime) (const CMPIBroker *mb, CMPIDateTime *date) |
Allows a MI to free memory associated to a CMPIDateTime which was allocated via CMPIBrokerEncFT.newDateTime functions. this function should be called when an instance is no longer being used by the MI. This function will free all contained objects.
mb | the broker. |
args | The string to free. |
void(* _CMPIBrokerMemFT::freeInstance) (const CMPIBroker *mb, CMPIInstance *inst) |
Allows a MI to free memory associated to a CMPIinstance which was allocated via CMPIBrokerEncFT.newInstance. this function should be called when an instance is no longer being used by the MI. This function will free all contained objects (e.g. properties).
mb | the broker. inst The instance to free. |
void(* _CMPIBrokerMemFT::freeObjectPath) (const CMPIBroker *mb, CMPIObjectPath *obj) |
Allows a MI to free memory associated to a CMPIArgs which was allocated via CMPIBrokerEncFT.newArgs. this function should be called when an instance is no longer being used by the MI. This function will free all contained objects.
mb | the broker. |
obj | The object path to free. |
void(* _CMPIBrokerMemFT::freeSelectExp) (const CMPIBroker *mb, CMPISelectExp *se) |
Allows a MI to free memory associated to a CMPISelectExp which was allocated via CMPIBrokerEncFT.newSelectExp functions. this function should be called when an instance is no longer being used by the MI. This function will free all contained objects.
mb | the broker. |
args | The string to free. |
void(* _CMPIBrokerMemFT::freeString) (const CMPIBroker *mb, CMPIString *str) |
Allows a MI to free memory associated to a CMPIString which was allocated via CMPIBrokerEncFT.newString. this function should be called when an instance is no longer being used by the MI. This function will free all contained objects.
mb | the broker. |
args | The string to free. |
const int _CMPIBrokerMemFT::ftVersion |
CMPIGcStat*(* _CMPIBrokerMemFT::mark) (const CMPIBroker *mb, CMPIStatus *rc) |
Returns a marker. Invoking this function marks subsequent newly created CMPI objects to be released when release() function is invoked. Note: mark() functions can be stacked.
mb | The broker. |
rc | Output: Service return status (suppressed when NULL). |
CMPIStatus(* _CMPIBrokerMemFT::release) (const CMPIBroker *mb, const CMPIGcStat *gc) |