#define _MESSIAH_FULL_API #define _MAINPLUGIN_FILE #include <messiah_main.h>
FX_EXPFUNC( Exec, void, data );
FXint Exec( FX_Arg *return_arg, void *data);
_pluginEntry { //... return FX_PLUGIN_OK; }
_MESSIAH_PLUGIN_ALL("Hello_Func");
fxFunctionDescription("My first messiah plugin!", FX_NOFLAG);
fxFunctionRegister("HelloFunc", FX_FUNCCLASS_GENERAL, &Exec, NULL, FX_ARG_INT, FX_NOFLAG);
_pluginEntry { // Get all API components and do initial plugin setup _MESSIAH_PLUGIN_ALL("Hello_Func"); // Describe the mfunc in English fxFunctionDescription("My first messiah plugin!", FX_NOFLAG); // Register the mfunc fxFunctionRegister("HelloFunc", &Exec, NULL, FX_ARG_INT, FX_NOFLAG); return FX_PLUGIN_OK; }
_pluginExit { }
FX_EXPFUNC( Exec, void, data ) // FXint f(FX_Arg *return_arg, dt *ed) { fxMessageSend(FX_NULLID, "HelloFunc", FX_MESSAGE_POST, "Hello World!", NULL); fxArgSetInt( return_arg, 0, 1); return FX_FUNC_OK;
FX_FUNC_OK
indicating to the system that our Function Module executed successfully.
© 2003 pmG WorldWide,
LLC.
|
Last
Updated on Thu Jul 10 04:49:37 2003
|