CMPIInstanceMI* CMInstanceMIStub

(chars pfx, chars pn,
  CMPIBroker* broker,
  statement hook)

This macro generates the function table and initialization stub for an instance provider.

Documentation

This macro generates the function table and initialization stub for an instance provider. The initialization routine <pn>Create_InstanceMI is called when this provider module is loaded by the broker. This macro is for CMPI providers written in plain C.
Parameters:
pfx - The prefix for all mandatory association provider functions. This is a character string without quotes. Mandatory functions are: <pfx>Cleanup, <pfx>EnumInstanceNames, <pfx>EnumInstances, <pfx>GetInstance, <pfx>CreateInstance, <pfx>SetInstance, <pfx>DeleteInstance and <pfx>ExecQuery.
pn - The provider name under which this provider is registered. This is a character string without quotes.
broker - The name of the broker variable used by this macro to store the CMPIBroker pointer
hook - A statement that is executed within <pn>Create_InstanceMI routine. This enables you to perform additional initialization functions and is normally a function call like furtherInit(broker) or CMNoHook. Use CMNoHook if no further intialization is required.
Returns:
The function table of this instance provider.

Alphabetic index