From 71a94c3f20971e378fcccefe9681652b8fee7b89 Mon Sep 17 00:00:00 2001 From: Maciek Borzecki Date: Sun, 18 Jan 2015 15:25:42 +0100 Subject: [PATCH] packethandlers: helper to have all handlers use the device --- src/packethandlers.vala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/packethandlers.vala b/src/packethandlers.vala index e16775b..234609a 100644 --- a/src/packethandlers.vala +++ b/src/packethandlers.vala @@ -59,4 +59,10 @@ class PacketHandlers : Object { } // return interfaces; } + + public void use_device(Device dev) { + _handlers.foreach((h) => { + h.use_device(dev); + }); + } } \ No newline at end of file