Regular API function

simGetModuleInfo / sim.getModuleInfo

Description Returns auxiliary information about a loaded plugin. See also simSetModuleInfo and sim.getModuleName.
C synopsis simInt simGetModuleInfo(const simChar* moduleName,simInt infoType,simChar** stringInfo,simInt* intInfo)
C parameters
moduleName: the name of the plugin. See sim.getModuleName.
infoType: the type of information to retrieve:
0: extended version string
1: build date string
2: extended version integer
stringInfo: a pointer to a string information, in case the information type is for a string. The user is in charge of releasing the string buffer with sim.releaseBuffer
intInfo: a pointer to an integer information, in case the information type is for an integer.
C return value
-1 in case of an error
Lua synopsis string/number info=sim.getModuleInfo(string moduleName,number infoType)
Lua parameters
Similar to the C-function
Lua return values
Similar to the C-function

All regular API functions on one page