diff --git a/lib/RippingCluster/Worker/IPlugin.class.php b/lib/RippingCluster/Worker/IPlugin.class.php index 8ce504b..25afefc 100644 --- a/lib/RippingCluster/Worker/IPlugin.class.php +++ b/lib/RippingCluster/Worker/IPlugin.class.php @@ -2,15 +2,14 @@ interface RippingCluster_Worker_IPlugin { + public static function init(); + + public static function name(); + public static function workerFunctions(); public static function rip(GearmanJob $job); - - public function evaluateOption($name, $option = null); - - public function callbackStdout($id, $data); - - public function callbackStderr($id, $data); + } ?> \ No newline at end of file diff --git a/lib/RippingCluster/Worker/Plugin/HandBrake.class.php b/lib/RippingCluster/Worker/Plugin/HandBrake.class.php index 1d322ff..da576c8 100644 --- a/lib/RippingCluster/Worker/Plugin/HandBrake.class.php +++ b/lib/RippingCluster/Worker/Plugin/HandBrake.class.php @@ -2,6 +2,8 @@ class RippingCluster_Worker_Plugin_HandBrake implements RippingCluster_Worker_IPlugin { + const PLUGIN_NAME = 'HandBrake'; + const DEINTERLACE_ALWAYS = 1; const DEINTERLACE_SELECTIVELY = 2; @@ -24,7 +26,11 @@ class RippingCluster_Worker_Plugin_HandBrake implements RippingCluster_Worker_IP } public static function init() { - + // Nothing to do + } + + public static function name() { + return self::PLUGIN_NAME; } public static function workerFunctions() {