Added plugin architecture for Worker functions, to support multiple ripping engines. Update worker script to use the new code. Update Logger to output messages to console when running under the worker script.
16 lines
327 B
PHP
16 lines
327 B
PHP
<?php
|
|
|
|
interface HandBrakeCluster_Worker_IPlugin {
|
|
|
|
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);
|
|
}
|
|
|
|
?>
|