summaryrefslogtreecommitdiff
path: root/backend/plugin/passive_plugin.py
diff options
context:
space:
mode:
authorJonas Dellinger <jonas.dellinger@2trde.com>2022-06-16 18:33:43 +0200
committerJonas Dellinger <jonas.dellinger@2trde.com>2022-06-16 18:33:43 +0200
commit0a12fe6102da33977548ba0c277bd4fe34e262ab (patch)
tree7ff803d0d106db43ce206a6cdfc74c187f0d901a /backend/plugin/passive_plugin.py
parenta95bf94d878f61869895bb22cbff1b4f524c5dca (diff)
downloaddecky-loader-0a12fe6102da33977548ba0c277bd4fe34e262ab.tar.gz
decky-loader-0a12fe6102da33977548ba0c277bd4fe34e262ab.zip
First draft of backend independent plugins
Diffstat (limited to 'backend/plugin/passive_plugin.py')
-rw-r--r--backend/plugin/passive_plugin.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/backend/plugin/passive_plugin.py b/backend/plugin/passive_plugin.py
new file mode 100644
index 00000000..9b7907bb
--- /dev/null
+++ b/backend/plugin/passive_plugin.py
@@ -0,0 +1,15 @@
+class PassivePlugin:
+ def __init__(self, logger) -> None:
+ self.logger
+ pass
+
+ def call_method(self, method_name, args):
+ self.logger.debug(f"Tried to call method {method_name}, but plugin is in passive mode")
+ pass
+
+ def execute_method(self, method_name, method_args):
+ self.logger.debug(f"Tried to execute method {method_name}, but plugin is in passive mode")
+ pass
+
+ async def start(self):
+ pass# Empty stub