addHook ('mountpointAdded', function (qcEvents_Watchdog_Mount $Watcher, $fsSpec, $fsFile, $fsType, array $fsOpts) { echo 'Added ', $fsSpec, ' to ', $fsFile, "\n"; }); $Watcher->addHook ('mountpointRemoved', function (qcEvents_Watchdog_Mount $Watcher, $fsSpec, $fsFile, $fsType, array $fsOpts) { echo 'Removed ', $fsSpec, ' from ', $fsFile, "\n"; }); $Watcher->addHook ('mountpointChanged', function (qcEvents_Watchdog_Mount $Watcher, $fsSpec, $fsFile, $fsType, array $fsOpts) { echo 'Changed ', $fsSpec, ' on ', $fsFile, "\n"; }); // Enter main-loop $Base->loop (); ?>