Skip to content

Commit

Permalink
Removed hard coded default signal sinks to subscribe to.
Browse files Browse the repository at this point in the history
  • Loading branch information
afan1 committed May 1, 2016
1 parent 3c593e3 commit fb8885e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/lua_libraries/agent.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@ end
assert(assert(ldbus.bus.request_name(agent.conn , "dynamicagent.signal.sink"..full_path , {replace_existing = true})) == "primary_owner" , "Not Primary Owner")

-- DBus signals to subscribe to --
assert(ldbus.bus.add_match(agent.conn , "type='signal',interface='bus.can.update.can_medium_speed'"))
assert(ldbus.bus.add_match(agent.conn , "type='signal',interface='com.jlr.fmradio'"))
assert(ldbus.bus.add_match(agent.conn , "type='signal',interface='com.jlr.mediaManager'"))
-- Optionally assert default interfaces/signals to listen to for all agents
-- assert(ldbus.bus.add_match(agent.conn , "type='signal',interface='bus.can.update.can_medium_speed'"))
-- assert(ldbus.bus.add_match(agent.conn , "type='signal',interface='com.jlr.fmradio'"))
-- assert(ldbus.bus.add_match(agent.conn , "type='signal',interface='com.jlr.mediaManager'"))
----------------------------------

agent.conn:flush()
Expand Down

0 comments on commit fb8885e

Please sign in to comment.