packaging: pass-through Lua resource veto.
authorKrisztian Litkey <krisztian.litkey@intel.com>
Wed, 8 Jan 2014 14:13:38 +0000 (16:13 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:12 +0000 (18:37 +0200)
Change-Id: Idf6e0770ecb14e4e3febed229df2d8b52a2b83a9

packaging.in/murphy.lua

index 9f48f0c..9e4480b 100644 (file)
@@ -212,19 +212,9 @@ if not m:plugin_exists('ivi-resource-manager') and
    not with_system_controller
 then
     resource.method.veto = {
-        function(zone, rset, grant, owners)
-           rset_priority = application_class[rset.application_class].priority
-
-           owner_id = owners.audio_playback.resource_set
-           rset_id = rset.id
-
-            if (rset_priority >= 50 and owner_id ~= rset_id) then
-                print("*** resource-set "..rset_id.." - veto")
-                return false
-            end
-
+        function(zone, rset, grant, owners, req_set)
             return true
-        end
+         end
     }
 end