CMPI 2.1.0 API
|
Modules | |
CMFmtArgs<N>() | |
Helper macros for message translation. | |
CMFmt<type>() | |
Helper macros for message translation. | |
Macros | |
#define | CMGetMessage(mb, msgId, defMsg, rc, args) |
Get a translated MB implementation-specific message text by message ID. (Deprecated) More... | |
#define | CMGetMessage2(mb, msgId, msgFileHandle, defMsg, rc, args) |
Get a translated message text from an open message file by message ID. More... | |
Functions | |
static CMPIContext * | CBPrepareAttachThread (const CMPIBroker *mb, const CMPIContext *ctx) |
Prepare the MB to accept a new thread that will be using MB functions. More... | |
static CMPIStatus | CBAttachThread (const CMPIBroker *mb, const CMPIContext *ctx) |
Inform the MB that the current thread will begin using MB functions. More... | |
static CMPIStatus | CBDetachThread (const CMPIBroker *mb, const CMPIContext *ctx) |
Inform the MB that the current thread will no longer use MB functions. More... | |
static CMPIStatus | CBDeliverIndication (const CMPIBroker *mb, const CMPIContext *ctx, const char *ns, const CMPIInstance *ind) |
Request delivery of an indication. More... | |
static CMPIEnumeration * | CBEnumInstanceNames (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *classPath, CMPIStatus *rc) |
Enumerate the instance paths of the instances of a given class (and its subclasses). More... | |
static CMPIEnumeration * | CBEnumInstances (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *classPath, const char **properties, CMPIStatus *rc) |
Enumerate the instances of a given class (and its subclasses). More... | |
static CMPIInstance * | CBGetInstance (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char **properties, CMPIStatus *rc) |
Get an existing instance. More... | |
static CMPIObjectPath * | CBCreateInstance (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *classPath, const CMPIInstance *newInst, CMPIStatus *rc) |
Create an instance of a given class. More... | |
static CMPIStatus | CBModifyInstance (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const CMPIInstance *modInst, const char **properties) |
Modify property values of an existing instance. More... | |
static CMPIStatus | CBDeleteInstance (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath) |
Delete an existing instance. More... | |
static CMPIEnumeration * | CBExecQuery (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *classPath, const char *query, const char *lang, CMPIStatus *rc) |
Execute a query on a given class and return the query result. More... | |
static CMPIEnumeration * | CBAssociators (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *assocClass, const char *resultClass, const char *role, const char *resultRole, const char **properties, CMPIStatus *rc) |
Enumerate the instances associated with a given source instance. More... | |
static CMPIEnumeration * | CBAssociatorNames (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *assocClass, const char *resultClass, const char *role, const char *resultRole, CMPIStatus *rc) |
Enumerate the instance paths of the instances associated with a given source instance. More... | |
static CMPIEnumeration * | CBReferences (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *resultClass, const char *role, const char **properties, CMPIStatus *rc) |
Enumerate the association instances referencing a given source instance. More... | |
static CMPIEnumeration * | CBReferenceNames (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *resultClass, const char *role, CMPIStatus *rc) |
Enumerate the instance paths of the association instances referencing a given source instance. More... | |
static CMPIData | CBInvokeMethod (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *objPath, const char *method, const CMPIArgs *in, CMPIArgs *out, CMPIStatus *rc) |
Invoke a method on a target object. More... | |
static CMPIStatus | CBSetProperty (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *name, const CMPIValue *value, const CMPIType type) |
Set or modify a property of an existing instance. (Deprecated) More... | |
static CMPIData | CBGetProperty (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *name, CMPIStatus *rc) |
Get a property of an existing instance. (Deprecated) More... | |
static CMPIEnumeration * | CBEnumInstancesFiltered (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *classPath, const char **properties, const char *filterQueryLanguage, const char *filterQuery, CMPIStatus *rc) |
Enumerate the instances of a given class (and its subclasses), returning only those that match the given query filter. More... | |
static CMPIEnumeration * | CBAssociatorsFiltered (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *assocClass, const char *resultClass, const char *role, const char *resultRole, const char **properties, const char *filterQueryLanguage, const char *filterQuery, CMPIStatus *rc) |
Enumerate the instances associated with a given source instance, returning only those that match the given filters. More... | |
static CMPIEnumeration * | CBReferencesFiltered (const CMPIBroker *mb, const CMPIContext *ctx, const CMPIObjectPath *instPath, const char *resultClass, const char *role, const char **properties, const char *filterQueryLanguage, const char *filterQuery, CMPIStatus *rc) |
Enumerate the instances referencing a given source instance, returning only those that match the given filters. More... | |
static CMPIInstance * | CMNewInstance (const CMPIBroker *mb, const CMPIObjectPath *instPath, CMPIStatus *rc) |
Create a new CMPIInstance object initialized to a given instance path. More... | |
static CMPIObjectPath * | CMNewObjectPath (const CMPIBroker *mb, const char *ns, const char *cn, CMPIStatus *rc) |
Create a new CMPIObjectPath initialized to a given namespace and class name. More... | |
static CMPIArgs * | CMNewArgs (const CMPIBroker *mb, CMPIStatus *rc) |
Create a new CMPIArgs object initialized to have no method parameters. More... | |
static CMPIString * | CMNewString (const CMPIBroker *mb, const char *data, CMPIStatus *rc) |
Create a new CMPIString object initialized from a C-language string. More... | |
static CMPIArray * | CMNewArray (const CMPIBroker *mb, CMPICount size, CMPIType type, CMPIStatus *rc) |
Create a new CMPIArray object of a given size and type of elements. More... | |
static CMPIDateTime * | CMNewDateTime (const CMPIBroker *mb, CMPIStatus *rc) |
Create a new CMPIDataTime object to the current date and time. More... | |
static CMPIDateTime * | CMNewDateTimeFromBinary (const CMPIBroker *mb, CMPIUint64 binTime, CMPIBoolean interval, CMPIStatus *rc) |
Create a new CMPIDateTime object initialized to a specific value. More... | |
static CMPIDateTime * | CMNewDateTimeFromChars (const CMPIBroker *mb, const char *datetime, CMPIStatus *rc) |
Create a new CMPIDateTime object initialized to a specified value. More... | |
static CMPISelectExp * | CMNewSelectExp (const CMPIBroker *mb, const char *query, const char *lang, CMPIArray **projection, CMPIStatus *rc) |
Create a new CMPISelectExp object initialized from a select expression specified in a query language. More... | |
static CMPIError * | CMNewCMPIError (const CMPIBroker *mb, const char *owner, const char *msgID, const char *msg, const CMPIErrorSeverity sev, const CMPIErrorProbableCause pc, const CMPIrc cimStatusCode, CMPIStatus *rc) |
Create a new CMPIError object initialized with certain core attributes. More... | |
static CMPIPropertyList * | CMNewPropertyList (const CMPIBroker *mb, const char **properties, CMPIStatus *rc) |
Create a new CMPIPropertyList object initialized to a list of property names. More... | |
static CMPIString * | CMNewStringCP (const CMPIBroker *mb, const char *data, const CMPICodepageID cpid, CMPIStatus *rc) |
Create a new CMPIString object from a C-language string in a specific codepage. More... | |
static CMPIEnumerationFilter * | CMNewEnumerationFilter (const CMPIBroker *mb, const char *filterQueryLanguage, const char *filterQuery, CMPIStatus *rc) |
Create a new CMPIEnumerationFilter object initialized with a filter query. More... | |
static CMPIBoolean | CMClassPathIsA (const CMPIBroker *mb, const CMPIObjectPath *classPath, const char *className, CMPIStatus *rc) |
Test whether a class path is of a specified class or any of its subclasses. More... | |
static CMPIString * | CDToString (const CMPIBroker *mb, const void *object, CMPIStatus *rc) |
Convert an encapsulated data type object into a string representation. More... | |
static CMPIBoolean | CDIsOfType (const CMPIBroker *mb, const void *object, const char *type, CMPIStatus *rc) |
Test whether an encapsulated data type object is of a specified CMPI type. More... | |
static CMPIString * | CDGetType (const CMPIBroker *mb, const void *object, CMPIStatus *rc) |
Get the type name of an ensapsulated data type object. More... | |
static CMPIStatus | CMLogMessage (const CMPIBroker *mb, CMPISeverity severity, const char *id, const char *text, const CMPIString *string) |
Log a diagnostic message. More... | |
static CMPIStatus | CMTraceMessage (const CMPIBroker *mb, CMPILevel level, const char *component, const char *text, const CMPIString *string) |
Trace a diagnostic message with a specific trace level and component. More... | |
static CMPIStatus | CMOpenMessageFile (const CMPIBroker *mb, const char *msgFile, CMPIMsgFileHandle *msgFileHandle) |
Open a message file and return a handle to the file. More... | |
static CMPIStatus | CMCloseMessageFile (const CMPIBroker *mb, const CMPIMsgFileHandle msgFileHandle) |
Close a message file. More... | |
static CMPIGcStat * | CMMemMark (const CMPIBroker *mb, CMPIStatus *rc) |
Mark a new object lifecycle level for subsequent newly created CMPI encapsulated data type objects. More... | |
static CMPIStatus | CMMemRelease (const CMPIBroker *mb, const CMPIGcStat *gc) |
Release all CMPI encapsulated data type objects created at the specified object lifecycle level, and remove that level. More... | |
static void * | CMMalloc (const CMPIBroker *mb, size_t size) |
Allocate an uninitalized memory block of the specified size. More... | |
static void * | CMCalloc (const CMPIBroker *mb, size_t nElems, size_t sizeElem) |
Allocate a memory block of the specified size and initialize it to zero. More... | |
static void * | CMRealloc (const CMPIBroker *mb, void *ptr, size_t size) |
Change the size of a memory block. More... | |
static void * | CMStrDup (const CMPIBroker *mb, const char *str) |
Allocate a memory block and initialize it with a string. More... | |
static void | CMFree (const CMPIBroker *mb, void *ptr) |
Release a memory block. More... | |
static void | CMFreeInstance (const CMPIBroker *mb, CMPIInstance *inst) |
Release a CMPIInstance object. More... | |
static void | CMFreeObjectPath (const CMPIBroker *mb, CMPIObjectPath *obj) |
Release a CMPIObjectPath object. More... | |
static void | CMFreeArgs (const CMPIBroker *mb, CMPIArgs *args) |
Release a CMPIArgs object. More... | |
static void | CMFreeString (const CMPIBroker *mb, CMPIString *str) |
Release a CMPIString object. More... | |
static void | CMFreeArray (const CMPIBroker *mb, CMPIArray *array) |
Release a CMPIArray object. More... | |
static void | CMFreeDateTime (const CMPIBroker *mb, CMPIDateTime *dt) |
Release a CMPIDateTime object. More... | |
static void | CMFreeSelectExp (const CMPIBroker *mb, CMPISelectExp *se) |
Release a CMPISelectExp object. More... | |
static void | CMFreeChars (const CMPIBroker *mb, char *chars) |
Free the memory of a C-language string. More... | |
MB Functions in Broker Function Tables.
The convenience functions in this group call MB functions provided by the broker function tables (that is, the function tables pointed to by CMPIBroker members).
They simplify the code by eliminating the references to function tables, and by eliminating the need to know which of the function tables has the desired function.
#define CMGetMessage | ( | mb, | |
msgId, | |||
defMsg, | |||
rc, | |||
args | |||
) |
Get a translated MB implementation-specific message text by message ID. (Deprecated)
mb | CMPIBroker structure. | |
msgId | Message ID that is used by the MB to locate a message template. The message ID values and corresponding message templates are MB implementation-specific. | |
defMsg | The default message. See the full description for details. | |
[out] | rc | Function return status (suppressed when NULL). |
args | The message insert values, specified as CMFmtArgs<N>(<vlist>), where <N> is the number of values, and <vlist> is a comma-separated list of CMFmt<type>(<v>) macros. |
#define CMGetMessage2 | ( | mb, | |
msgId, | |||
msgFileHandle, | |||
defMsg, | |||
rc, | |||
args | |||
) |
Get a translated message text from an open message file by message ID.
mb | CMPIBroker structure. | |
msgId | The message identifier. | |
msgFileHandle | The handle representing the open message file. | |
defMsg | The default message. See the full description for details. | |
[out] | rc | Function return status (suppressed when NULL). |
args | The message insert values, specified as CMFmtArgs<N>(<vlist>), where <N> is the number of values, and <vlist> is a comma-separated list of CMFmt<type>(<v>) macros. |
|
inlinestatic |
Prepare the MB to accept a new thread that will be using MB functions.
This function is expected to be called in the existing thread.
mb | CMPIBroker structure. |
ctx | CMPIContext object. |
|
inlinestatic |
Inform the MB that the current thread will begin using MB functions.
mb | CMPIBroker structure. |
ctx | CMPIContext object that was returned by a prior call to CBPrepareAttachThread(). |
|
inlinestatic |
Inform the MB that the current thread will no longer use MB functions.
mb | CMPIBroker structure. |
ctx | CMPIContext object that was returned by a prior call to CBPrepareAttachThread(). |
|
inlinestatic |
Request delivery of an indication.
mb | CMPIBroker structure. |
ctx | CMPIContext object. |
ns | Name of the origin namespace of the indication (see DSP1054 for a definition). |
ind | The indication instance. |
|
inlinestatic |
Enumerate the instance paths of the instances of a given class (and its subclasses).
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
classPath | Class path of the given class. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the instances of a given class (and its subclasses).
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
classPath | Class path of the given class. | |
properties | Property list controlling the properties in the returned instances: Each returned instance will not include properties missing from this list. If @ properties is NULL, all properties will be included in each returned instance. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Get an existing instance.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the instance to be retrieved. | |
properties | Property list controlling the properties in the returned instances: Each returned instance will not include properties missing from this list. If @ properties is NULL, all properties will be included in each returned instance. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create an instance of a given class.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
classPath | Class path of the creation class for the new instance. | |
newInst | Property values for the new instance. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Modify property values of an existing instance.
mb | CMPIBroker structure. |
ctx | CMPIContext object. |
instPath | Instance path of the instance to be modified. |
modInst | New property values for the instance to be modified. |
properties | The names of the properties to be modified. If NULL, all properties will be modified. |
|
inlinestatic |
Delete an existing instance.
mb | CMPIBroker structure. |
ctx | CMPIContext object. |
instPath | Instance path of the instance to be deleted. |
|
inlinestatic |
Execute a query on a given class and return the query result.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
classPath | Class path of the class to be queried. | |
query | Select expression. | |
lang | Query language. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the instances associated with a given source instance.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the given source instance. | |
assocClass | If not NULL, a valid association class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an instance of this class or one of its subclasses. | |
resultClass | If not NULL, a valid class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be either an instance of this class or one of its subclasses. | |
role | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the source instance plays the specified role. | |
resultRole | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the returned instance plays the specified role. | |
properties | Property list controlling the properties in the returned instances: Each returned instance will not include properties missing from this list. If @ properties is NULL, all properties will be included in each returned instance. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the instance paths of the instances associated with a given source instance.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the given source instance. | |
assocClass | If not NULL, a valid association class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an instance of this class or one of its subclasses. | |
resultClass | If not NULL, a valid class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be either an instance of this class or one of its subclasses. | |
role | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the source instance plays the specified role. | |
resultRole | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the returned instance plays the specified role. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the association instances referencing a given source instance.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the given source instance. | |
resultClass | If not NULL, a valid class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be either an instance of this class or one of its subclasses. | |
role | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the source instance plays the specified role. | |
properties | Property list controlling the properties in the returned instances: Each returned instance will not include properties missing from this list. If @ properties is NULL, all properties will be included in each returned instance. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the instance paths of the association instances referencing a given source instance.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the given source instance. | |
resultClass | If not NULL, a valid class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be either an instance of this class or one of its subclasses. | |
role | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the source instance plays the specified role. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Invoke a method on a target object.
Instance methods (i.e., non-static methods) can be invoked only on instances. Class methods (i.e., static methods) can be invoked on instances and classes.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
objPath | Object path of the target object. | |
method | Method name. | |
in | A CMPIArgs object containing the method input parameters. | |
[out] | out | An empty CMPIArgs object that, upon successful return of the method, will have been updated to contain the method output parameters. |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Set or modify a property of an existing instance. (Deprecated)
mb | CMPIBroker structure. |
ctx | CMPIContext object. |
instPath | Instance path of the instance to be modified. |
name | Property name. |
value | CMPIValue structure containing the non-NULL value to be assigned to the property, or NULL to specify that NULL is to be assigned. |
type | Type of the value to be assigned. |
|
inlinestatic |
Get a property of an existing instance. (Deprecated)
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the instance to be retrieved. | |
name | Property name. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the instances of a given class (and its subclasses), returning only those that match the given query filter.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
classPath | Class path of the given class. | |
properties | Property list controlling the properties in the returned instances: Each returned instance will not include properties missing from this list. If @ properties is NULL, all properties will be included in each returned instance. | |
filterQueryLanguage | Query language used by filterQuery (no filtering when NULL). | |
filterQuery | Query for filtering the result (no filtering when NULL). | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the instances associated with a given source instance, returning only those that match the given filters.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the given source instance. | |
assocClass | If not NULL, a valid association class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an instance of this class or one of its subclasses. | |
resultClass | If not NULL, a valid class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be either an instance of this class or one of its subclasses. | |
role | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the source instance plays the specified role. | |
resultRole | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the returned instance plays the specified role. | |
properties | Property list controlling the properties in the returned instances: Each returned instance will not include properties missing from this list. If @ properties is NULL, all properties will be included in each returned instance. | |
filterQueryLanguage | Query language used by filterQuery (no filtering when NULL). | |
filterQuery | Query for filtering the result (no filtering when NULL). | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Enumerate the instances referencing a given source instance, returning only those that match the given filters.
mb | CMPIBroker structure. | |
ctx | CMPIContext object. | |
instPath | Instance path of the given source instance. | |
resultClass | If not NULL, a valid class name that acts as a filter on the returned set of instances by mandating that each returned instance shall be either an instance of this class or one of its subclasses. | |
role | If not NULL, a valid property name that acts as a filter on the returned set of instances by mandating that each returned instance shall be associated to the source instance via an association in which the source instance plays the specified role. | |
properties | Property list controlling the properties in the returned instances: Each returned instance will not include properties missing from this list. If @ properties is NULL, all properties will be included in each returned instance. | |
filterQueryLanguage | Query language used by filterQuery (no filtering when NULL). | |
filterQuery | Query for filtering the result (no filtering when NULL). | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIInstance object initialized to a given instance path.
mb | CMPIBroker structure. | |
instPath | The class path or instance path for the new CMPIInstance object. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIObjectPath initialized to a given namespace and class name.
mb | CMPIBroker structure. | |
ns | Namespace name. | |
cn | Class name. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIArgs object initialized to have no method parameters.
mb | CMPIBroker structure. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIString object initialized from a C-language string.
mb | CMPIBroker structure. | |
data | C-language string. | |
[out] | rc | Function return status (suppressed when NULL). |
data
argument. The example in the convenience function specifies NULL, but the 2.1 and 2.0 specs are silent about whether NULL is allowed.
|
inlinestatic |
Create a new CMPIArray object of a given size and type of elements.
mb | CMPIBroker structure. | |
size | Size of the array. A value of 0 is valid and specifies an empty array. | |
type | Type of each array element. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIDataTime object to the current date and time.
mb | CMPIBroker structure. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIDateTime object initialized to a specific value.
CMNewDateTimeFromBinary() executes CMPIBrokerEncFT.newDateTimeFromBinary() to create a new CMPIDateTime object initialized from binTime
.
mb | CMPIBroker structure. | |
binTime | When interval is false, a point in time value expressed as a 64-bit unsigned integer in microseconds since 00:00:00 GMT, January 1, 1970. Otherwise, a time interval expressed as a 64-bit unsigned integer in microseconds. | |
interval | If true, indicates that binTime is considered to be a time interval. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIDateTime object initialized to a specified value.
mb | CMPIBroker structure. | |
datetime | Date/time value to be used for the new object in the string format for CIM datetime values defined in DSP0004. Both the interval and point in time formats are supported. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPISelectExp object initialized from a select expression specified in a query language.
mb | CMPIBroker structure. | |
query | Select expression. | |
lang | Query language. | |
[out] | projection | A new CMPIArray object of CMPIString entries containing the projection specification. |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIError object initialized with certain core attributes.
mb | CMPIBroker structure. | |
owner | Value for the OwningEntity attribute of the CMPIError object. For a description of the OwningEntity attribute, see the description of the OwningEntity property in the CIM_Error class in the CIM Schema. If the error message is defined in a DMTF message registry, the string value of owner shall be the content of the OWNING_ENTITY element defined for the registry. | |
msgID | Value for the MessageID attribute of the CMPIError object. For a description of the MessageID attribute, see the description of the MessageID property in the CIM_Error class in the CIM Schema. If the error message is defined in a DMTF message registry, the string value of msgID shall be the message ID defined for the message in the registry (the concatenation of the values of the PREFIX and SEQUENCE_NUMBER attributes of the MESSAGE_ID element for the message). | |
msg | Value for the Message attribute of the CMPIError object. For a description of the Message attribute, see the description of the Message property in the CIM_Error class in the CIM Schema. This message is the formatted and translated message, with any dynamic values expanded. | |
sev | Value for the PerceivedSeverity attribute of the CMPIError object. For a description of the PerceivedSeverity attribute, see the description of the PerceivedSeverity property in the CIM_Error class in the CIM Schema. If the error message is defined in a DMTF message registry, the string value of sev shall be the content of the PERCEIVED_SEVERITY element defined for the message in the registry. | |
pc | value for the ProbableCause attribute of the CMPIError object. For a description of the ProbableCause attribute, see the description of the ProbableCause property in the CIM_Error class in the CIM Schema. If the error message is defined in a DMTF message registry, note that the string value of pc is not defined in the message in the registry. | |
cimStatusCode | Value for the CIMStatusCode attribute of the CMPIError object. For a description of the CIMStatusCode attribute, see the description of the CIMStatusCode property in the CIM_Error class in the CIM Schema. Not all status codes are valid for each operation. The specification for each MI function defines the status codes that may be returned. If the error message is defined in a DMTF message registry, cimStatusCode shall reflect the content of the CIMSTATUSCODE element defined for the message in the registry. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIPropertyList object initialized to a list of property names.
mb | CMPIBroker structure. | |
properties | The property names in the property list, in any order and in any lexical case. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIString object from a C-language string in a specific codepage.
mb | CMPIBroker structure. | |
data | C-language string represented in the codepage specified in cpid . data is used to initialize the new CMPIString object after converting it from its codepage to UTF-8. | |
cpid | CMPI-specific codepage ID for the codepage that is used to interpret the Bytes in the data argument. See CMPICodepageID for a list of supported codepages and their codepage ID values. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Create a new CMPIEnumerationFilter object initialized with a filter query.
mb | CMPIBroker structure. | |
filterQueryLanguage | Query language used by filterQuery (no filtering when NULL). | |
filterQuery | Filter query (no filtering when NULL). | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Test whether a class path is of a specified class or any of its subclasses.
mb | CMPIBroker structure. | |
classPath | Class path that is being tested. | |
className | Class name to be tested for. | |
[out] | rc | Function return status (suppressed when NULL). |
true | The class path is of the specified class or any of that class's subclasses. |
false | The class path is not of the specified class nor any of that class's subclasses. |
|
inlinestatic |
Convert an encapsulated data type object into a string representation.
mb | CMPIBroker structure. | |
object | Encapsulated data type object. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Test whether an encapsulated data type object is of a specified CMPI type.
mb | CMPIBroker structure. | |
object | Encapsulated data type object. | |
type | Type name of the encapsulated data type to be tested for (e.g., "CMPIInstance"). | |
[out] | rc | Function return status (suppressed when NULL). |
true | The object is of the specified CMPI type. |
false | The object is not of the specified CMPI type. |
|
inlinestatic |
Get the type name of an ensapsulated data type object.
mb | CMPIBroker structure. | |
object | Encapsulated data type object. | |
[out] | rc | Function return status (suppressed when NULL). |
|
inlinestatic |
Log a diagnostic message.
mb | CMPIBroker structure. |
severity | Severity of the log message. Severity levels are defined in CMPISeverity. |
id | If not NULL, message ID or any other identifying string. |
text | If not NULL, message text to be logged. |
string | If not NULL, message text to be logged. string will be ignored when text is not NULL. |
severity
by changing its type from int to CMPISeverity. This is a compatible change for MIs.
|
inlinestatic |
Trace a diagnostic message with a specific trace level and component.
mb | CMPIBroker structure. |
level | Trace level of the message. Trace levels are defined in CMPILevel. |
component | If not NULL, MI implementation-specific component ID. |
text | If not NULL, message text to be traced. |
string | If not NULL, message text to be traced. string will be ignored when text is not NULL. |
level
by changing its type from int to CMPILevel. This is a compatible change for MIs.
|
inlinestatic |
Open a message file and return a handle to the file.
Depends on whether the MB supports the MessageTranslation" capability.
mb | CMPIBroker structure. | |
msgFile | Implementation-specific file path to the message file, or a part thereof. | |
[out] | msgFileHandle | Handle representing the open message file. |
|
inlinestatic |
Close a message file.
mb | CMPIBroker structure. |
msgFileHandle | Handle representing the open message file. |
|
inlinestatic |
Mark a new object lifecycle level for subsequent newly created CMPI encapsulated data type objects.
mb | CMPIBroker structure. | |
[out] | rc | Function return status (suppressed when NULL). |
gc2
pointer as an argument, identifying the current object lifecycle level #2, but cannot pass the gc1
pointer.
|
inlinestatic |
Release all CMPI encapsulated data type objects created at the specified object lifecycle level, and remove that level.
mb | CMPIBroker structure. |
gc | CMPIGcStat structure returned from the CMPIBrokerMemFT.mark() function. |
|
inlinestatic |
Allocate an uninitalized memory block of the specified size.
mb | CMPIBroker structure. |
size | Amount of memory to allocate, in Bytes. |
|
inlinestatic |
Allocate a memory block of the specified size and initialize it to zero.
mb | CMPIBroker structure. |
nElems | Number of elements to allocate. |
sizeElem | Size of each element to allocate, in Bytes. |
|
inlinestatic |
Change the size of a memory block.
mb | CMPIBroker structure. |
ptr | If not NULL, points to previosuly allocated memory. Passing a non-NULL pointer to this function which was not allocated explicitly by CMMalloc() or CMCalloc() is undefined. If ptr is NULL, the function behaves like CMMalloc(), assigning a new memory block of size Bytes and returning a pointer to its beginning. |
size | New size of the memory block, in Bytes. The new size may be larger or smaller than (or equal to) the current size. |
|
inlinestatic |
Allocate a memory block and initialize it with a string.
mb | CMPIBroker structure. |
str | C-language string to be duplicated. |
|
inlinestatic |
Release a memory block.
mb | CMPIBroker structure. |
ptr | Points to the memory block to free. The memory block shall have been allocated via the CMMalloc(), CMCalloc(), CMRealloc(), or CMStrDup() functions. |
|
inlinestatic |
Release a CMPIInstance object.
mb | CMPIBroker structure. |
inst | The CMPIInstance object to be released. That object shall have been created using CMNewInstance(). |
|
inlinestatic |
Release a CMPIObjectPath object.
mb | CMPIBroker structure. |
obj | The CMPIObjectPath object to be released. That object shall have been created using CMNewObjectPath(). |
|
inlinestatic |
Release a CMPIArgs object.
mb | CMPIBroker structure. |
args | The CMPIArgs object to be released. That object shall have been created using CMNewArgs(). |
|
inlinestatic |
Release a CMPIString object.
mb | CMPIBroker structure. |
str | The CMPIString object to be released. That object shall have been created using CMNewString() or CMNewStringCP(). |
|
inlinestatic |
Release a CMPIArray object.
mb | CMPIBroker structure. |
array | The CMPIArray object to be released. That object shall have been created using CMNewArray(). |
|
inlinestatic |
Release a CMPIDateTime object.
mb | CMPIBroker structure. |
dt | The CMPIDateTime object to be released. That object shall have been created using CMNewDateTime(), CMNewDateTimeFromBinary(), or CMNewDateTimeFromChars(). |
|
inlinestatic |
Release a CMPISelectExp object.
mb | CMPIBroker structure. |
se | The CMPISelectExp object to be released. That object shall have been created using CMNewSelectExp(). |
|
inlinestatic |
Free the memory of a C-language string.
mb | CMPIBroker structure. |
chars | The C-language string to be released. This C-language string shall have been created using CMNewCharsCP(). |