]> kaliko git repositories - mpd-sima.git/blobdiff - sima/lib/plugin.py
Add SimaDB and deal with history
[mpd-sima.git] / sima / lib / plugin.py
index ac21b2f6117b2752ba88a855bafd8bb0ede842a4..f846e2e9d16565244f7178d32cede6edaa3da49a 100644 (file)
@@ -2,6 +2,7 @@
 
 class Plugin():
     def __init__(self, daemon):
+        self.log = daemon.log
         self.__daemon = daemon
         #self.history = daemon.player.history
 
@@ -9,6 +10,12 @@ class Plugin():
     def name(self):
         return self.__class__.__name__.lower()
 
+    def callback_player(self):
+        """
+        Called on player changes
+        """
+        pass
+
     def callback_playlist(self):
         """
         Called on playlist changes
@@ -28,12 +35,6 @@ class Plugin():
         """
         pass
 
-    def callback_player_stop(self):
-        """Not returning data,
-        Could be use to ensure player never stops
-        """
-        pass
-
     def shutdown(self):
         pass