Skip to content

Commit 3e8d434

Browse files
committed
retrieve optional name of node
1 parent f451d1b commit 3e8d434

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lsdbus/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ local function lom2node(doc)
109109
end
110110
end
111111
return {
112+
name = doc.attr.name,
112113
interfaces = interfaces,
113114
nodes = nodes,
114115
}

test/introspect.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ local lsdb = require("lsdbus")
44
local TestIntrospect = {}
55

66
local testnode = {
7+
name="/com/example/sample_object0",
78
interfaces = {
89
{
910
name="com.example.SampleInterface0",

0 commit comments

Comments
 (0)