struct _CMPIMethodMIFT

This structure is a table of pointers providing access to Method provider functions.

Documentation

This structure is a table of pointers providing access to Method provider functions. This table must be returend during initialization by the provider.

[more]int ftVersion
Function table version
[more]int miVersion
Provider version
[more]const char* miName
Provider name
[more]CMPIStatus (*cleanup)(CMPIMethodMI* mi, const CMPIContext* ctx, CMPIBoolean terminating)
The CMPIMethodMIFTcleanup() function shall perform any necessary cleanup operation prior to the unloading of the library of which this MI group is part.
[more]CMPIStatus (*invokeMethod)(CMPIMethodMI* mi, const CMPIContext* ctx, const CMPIResult* rslt, const CMPIObjectPath* op, const char* method, const CMPIArgs* in, CMPIArgs* out)
Invoke a named, extrinsic method of an Instance defined by the <op> parameter.

oint ftVersion
Function table version

oint miVersion
Provider version

oconst char* miName
Provider name

oCMPIStatus (*cleanup)(CMPIMethodMI* mi, const CMPIContext* ctx, CMPIBoolean terminating)
The CMPIMethodMIFTcleanup() function shall perform any necessary cleanup operation prior to the unloading of the library of which this MI group is part. This function is called prior to the unloading of the provider.

Parameters:
mi - The mi argument is a pointer to a CMPIMethodMI structure.
ctx - The ctx argument is a pointer to a CMPIContext structure containing the Invocation Context.
terminating - When true, the terminating argument indicates that the MB is in the process of terminating and that cleanup must be done. When set to false, the MI may respond with CMPI_IRC_DO_NOT_UNLOAD, or CMPI_IRC_NEVER_UNLOAD, indicating that unload will interfere with current MI processing.
Returns:
Function return status. The following CMPIrc codes shall be recognized: CMPI_RC_OK Operation successful. CMPI_RC_ERR_FAILED Unspecific error occurred. CMPI_RC_DO_NOT_UNLOAD Operation successful - do not unload now. CMPI_RC_NEVER_UNLOAD Operation successful - never unload.

oCMPIStatus (*invokeMethod)(CMPIMethodMI* mi, const CMPIContext* ctx, const CMPIResult* rslt, const CMPIObjectPath* op, const char* method, const CMPIArgs* in, CMPIArgs* out)
Invoke a named, extrinsic method of an Instance defined by the <op> parameter.
Parameters:
mi - Provider this pointer.
ctx - Invocation Context
rslt - Result data container.
op - ObjectPath containing namespace, classname and key components.
method - Method name
in - Input parameters.
out - Output parameters.
Returns:
Function return status. The following CMPIrc codes shall be recognized: CMPI_RC_OK Operation successful. CMPI_RC_ERR_FAILED Unspecific error occurred. CMPI_RC_ERR_NOT_SUPPORTED Operation not supported by this MI. CMPI_RC_ERR_ACCESS_DENIED Not authorized. CMPI_RC_ERR_NOT_FOUND Instance not found. CMPI_RC_ERR_METHOD_NOT_AVAILABLE Method not available. CMPI_RC_ERR_METHOD_NOT_FOUND Method not found.

Alphabetic index