[dss-commits] r8867 - dss/trunk/core/scripting
dss-commits at forum.digitalstrom.org
dss-commits at forum.digitalstrom.org
Tue Oct 27 15:11:08 CET 2009
Author: pstaehlin
Date: 2009-10-27 15:11:08 +0100 (Tue, 27 Oct 2009)
New Revision: 8867
Modified:
dss/trunk/core/scripting/modeljs.cpp
Log:
Expose the functionID as a property on a js device
Modified: dss/trunk/core/scripting/modeljs.cpp
===================================================================
--- dss/trunk/core/scripting/modeljs.cpp 2009-10-27 08:40:39 UTC (rev 8866)
+++ dss/trunk/core/scripting/modeljs.cpp 2009-10-27 14:11:08 UTC (rev 8867)
@@ -580,6 +580,9 @@
case 4:
*rval = INT_TO_JSVAL(dev->getDevice().getModulatorID());
return JS_TRUE;
+ case 5:
+ *rval = INT_TO_JSVAL(dev->getDevice().getFunctionID());
+ return JS_TRUE;
}
}
return JS_FALSE;
@@ -605,6 +608,7 @@
{"name", 2, 0, dev_JSGet},
{"zoneID", 3, 0, dev_JSGet},
{"circuitID", 4, 0, dev_JSGet},
+ {"functionID", 5, 0, dev_JSGet},
{NULL}
};
More information about the dss-commits
mailing list