CMPIMethodMI* CMMethodMIStub

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

This macro generates the function table and initialization stub for a method provider.

Documentation

This macro generates the function table and initialization stub for a method provider. The initialization routine <pn>Create_MethodMI 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 method provider functions. This is a character string without quotes. Mandatory functions are: <pfx>MthodCleanup and <pfx>InvokeMethod.
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_MethodMI 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 method provider.

Alphabetic index