Eppley Institute for Cancer Research |
|
University of Nebraska Medical Center |
|
|
Each trigger module will occupy its own dll. The functions must be named as indicated and compiled with the standard "C" calling convention and exported. The DLL should look in directory labeled XML where the exe is located to load default values. If none exists it should create one there. If the user passes an XML with defaults it should use those instead. __declspec(dllexport) is how borland builder determines if a function is exported by a DLL file.
extern "C" __declspec(dllexport) int inittrigger(int*Start,int*Stop,HANDLE
StartMutex,HANDLE StopMutex,AnsiString* pExternalHeaderData, jl_xml_element*
InitSettings);
extern "C" __declspec(dllexport) jl_xml_element* settings(void);
extern "C" __declspec(dllexport) char* getxmltype(void);
extern "C" __declspec(dllexport) int stoptrigger(void);
extern "C" __declspec(dllexport) int showtriggerstatus(void);
extern "C" __declspec(dllexport) char* gettriggerheaderinfo(void);
extern "C" __declspec(dllexport) char* menustring(void);
extern "C" __declspec(dllexport) char* dlldescription(void);
extern "C" __declspec(dllexport) int enabletrigger(int State);
extern "C" __declspec(dllexport) int isenabled(void);
extern "C" __declspec(dllexport) jl_xml_element* gettriggerxmlsettings(void);
extern "C" __declspec(dllexport) jl_xml_element*
settriggerxmlsettings(jl_xml_element* newsettings);