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
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/int info=sim.getModuleInfo(string moduleName,int infoType)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart