Switch to new UCI version
[project/luci.git] / libs / uvl / luasrc / uvl / loghelper.lua
index dd9fcd6..91da1ac 100644 (file)
@@ -71,3 +71,11 @@ function dump_dependency( dep, ref, v, e )
 
        return str
 end
+
+function id( c, s, o )
+       if type(c) == "table" then
+               c, s, o = unpack(c)
+       end
+
+       return c .. ( s and '.' .. s or '' ) .. ( o and '.' .. o or '' )
+end