Fabio Manganiello
786286eac6
- Added ability to listen for signals - Improved introspection output - `dbus` plugin and backend have now been merged - Migrated from `dbus` to `pydbus`
26 lines
792 B
Python
26 lines
792 B
Python
from marshmallow import fields
|
|
from marshmallow.schema import Schema
|
|
from marshmallow.validate import OneOf
|
|
|
|
|
|
class DbusSignalSchema(Schema):
|
|
bus = fields.String(
|
|
required=True,
|
|
validate=OneOf(['system', 'session'])
|
|
)
|
|
|
|
interface = fields.String(allow_none=True, metadata={
|
|
'description': 'The DBus interface that should be monitored (default: all)'
|
|
})
|
|
|
|
path = fields.String(allow_none=True, metadata={
|
|
'description': 'Path of the resource to be monitored (default: all)'
|
|
})
|
|
|
|
signal = fields.String(allow_none=True, metadata={
|
|
'description': 'Signal name filter (default: all signals)'
|
|
})
|
|
|
|
sender = fields.String(allow_none=True, metadata={
|
|
'description': 'Signal sender filter (default: all senders)'
|
|
})
|