pub fn getpmcommand(ht: *mut HashTable, name: &str) -> Option<Param>Expand description
Direct port of getpmcommand(UNUSED(HashTable ht), const char *name) from Src/Modules/parameter.c:213.
C body (c:216-241):
cmd = cmdnamtab->getnode(cmdnamtab, name);
if (!cmd && isset(HASHLISTALL)) cmdnamtab->filltable(...); cmd = ...;
pm.node.nam = name; pm.node.flags = PM_SCALAR; pm.gsu.s = &pmcommand_gsu;
if (cmd) {
if (cmd->node.flags & HASHED) pm->u.str = cmd->u.cmd;
else pm->u.str = path/name;
} else {
pm->u.str = ""; pm->node.flags |= (PM_UNSET|PM_SPECIAL);
}Port of getpmcommand(UNUSED(HashTable ht), const char *name) from Src/Modules/parameter.c:213.