From 34f5dadad0bd5665f86ced99f90bb9bb48e98da8 Mon Sep 17 00:00:00 2001 From: Julian Bouzas <julian.bouzas@collabora.com> Date: Fri, 2 Apr 2021 12:53:49 -0400 Subject: [PATCH] src: config: rename session-item support to default-policy --- ...sion-item-support.lua => 10-default-policy.lua} | 14 +++++++------- .../config.lua.d/90-enable-default-policy.lua | 1 + .../config.lua.d/90-enable-session-items.lua | 1 - 3 files changed, 8 insertions(+), 8 deletions(-) rename src/config/config.lua.d/{10-session-item-support.lua => 10-default-policy.lua} (71%) create mode 100644 src/config/config.lua.d/90-enable-default-policy.lua delete mode 100644 src/config/config.lua.d/90-enable-session-items.lua diff --git a/src/config/config.lua.d/10-session-item-support.lua b/src/config/config.lua.d/10-default-policy.lua similarity index 71% rename from src/config/config.lua.d/10-session-item-support.lua rename to src/config/config.lua.d/10-default-policy.lua index cb9c6eac..6f14ffce 100644 --- a/src/config/config.lua.d/10-session-item-support.lua +++ b/src/config/config.lua.d/10-default-policy.lua @@ -1,19 +1,19 @@ --- Session Item support config file -- +-- Default policy config file -- -session_item_support = {} +default_policy = {} -session_item_support.sessions = { +default_policy.sessions = { -- [session name] = { session properties } ["audio"] = { ["media.type"] = "Audio" }, ["video"] = { ["media.type"] = "Video" }, } -session_item_support.policy = { +default_policy.policy = { move = true, -- moves session items when metadata target.node changes follow = true -- moves session items to the default device when it has changed } -function session_item_support.enable() +function default_policy.enable() -- Session item factories, building blocks for the session management graph -- Do not disable these unless you really know what you are doing load_module("si-node") @@ -22,11 +22,11 @@ function session_item_support.enable() load_module("si-standard-link") -- Create sessions statically at startup - load_script("static-sessions.lua", session_item_support.sessions) + load_script("static-sessions.lua", default_policy.sessions) -- Create items for nodes that appear in the graph load_script("create-item.lua") -- Link nodes to each other to make media flow in the graph - load_script("policy-node.lua", session_item_support.policy) + load_script("policy-node.lua", default_policy.policy) end diff --git a/src/config/config.lua.d/90-enable-default-policy.lua b/src/config/config.lua.d/90-enable-default-policy.lua new file mode 100644 index 00000000..c20e23ab --- /dev/null +++ b/src/config/config.lua.d/90-enable-default-policy.lua @@ -0,0 +1 @@ +default_policy.enable() diff --git a/src/config/config.lua.d/90-enable-session-items.lua b/src/config/config.lua.d/90-enable-session-items.lua deleted file mode 100644 index 93f0529a..00000000 --- a/src/config/config.lua.d/90-enable-session-items.lua +++ /dev/null @@ -1 +0,0 @@ -session_item_support.enable() -- GitLab