Package flumotion :: Package worker :: Package checks :: Module device
[hide private]

Module device

source code


Version: $Rev: 7678 $

Functions [hide private]
twisted.internet.defer.Deferred of flumotion.common.messages.Result
fetchDevices(mid, factories, parameter)
Fetches the available devices on the system according to the specified factories.
source code
Variables [hide private]
  __package__ = 'flumotion.worker.checks'
Function Details [hide private]

fetchDevices(mid, factories, parameter)

source code 

Fetches the available devices on the system according to the specified factories. If the first factory succeeds the other are ignored.

The result is either:

  • succesful, with a list of tuples with guid and device-name
  • succesful, with an error
  • failed
Parameters:
  • mid - the id to set on the message.
  • factories (str) - The gstreamer elements to check
  • parameter (str) - The parameter that specifies the device
Returns: twisted.internet.defer.Deferred of flumotion.common.messages.Result