UMockdev.Testbed

g GObject.Object GObject.Object UMockdev.Testbed UMockdev.Testbed GObject.Object->UMockdev.Testbed

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new ()
  add_device (subsystem, name, parent, attributes, properties)
  add_from_file (path)
  add_from_string (data)
  clear ()
  disable ()
  enable ()
  get_dev_fd (devnode)
  get_property (devpath, name)
  get_root_dir ()
  get_sys_dir ()
  load_evemu_events (dev, eventsfile)
  load_ioctl (dev, recordfile)
  load_script (dev, recordfile)
  load_socket_script (path, type, recordfile)
  remove_device (syspath)
  set_attribute (devpath, name, value)
  set_attribute_binary (devpath, name, value)
  set_attribute_hex (devpath, name, value)
  set_attribute_int (devpath, name, value)
  set_attribute_link (devpath, name, value)
  set_property (devpath, name, value)
  set_property_hex (devpath, name, value)
  set_property_int (devpath, name, value)
  uevent (devpath, action)

Virtual Methods

Inherited:GObject.Object (7)

Properties

None

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent_instance GObject.Object r  

Class Details

class UMockdev.Testbed(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:UMockdev.TestbedClass
classmethod new()
Return type:UMockdev.Testbed
add_device(subsystem, name, parent, attributes, properties)
Parameters:
  • subsystem (str) –
  • name (str) –
  • parent (str or None) –
  • attributes ([str]) –
  • properties ([str]) –
Return type:

str

add_from_file(path)
Parameters:path (str) –
Raises:GLib.Error
Return type:bool
add_from_string(data)
Parameters:data (str) –
Raises:GLib.Error
Return type:bool
clear()
disable()
enable()
get_dev_fd(devnode)
Parameters:devnode (str) –
Return type:int
get_property(devpath, name)
Parameters:
  • devpath (str) –
  • name (str) –
Return type:

str

get_root_dir()
Return type:str
get_sys_dir()
Return type:str
load_evemu_events(dev, eventsfile)
Parameters:
Raises:

GLib.Error

Return type:

bool

load_ioctl(dev, recordfile)
Parameters:
Raises:

GLib.Error

Return type:

bool

load_script(dev, recordfile)
Parameters:
Raises:

GLib.Error

Return type:

bool

load_socket_script(path, type, recordfile)
Parameters:
  • path (str) –
  • type (int) –
  • recordfile (str) –
Raises:

GLib.Error

Return type:

bool

remove_device(syspath)
Parameters:syspath (str) –
set_attribute(devpath, name, value)
Parameters:
  • devpath (str) –
  • name (str) –
  • value (str) –
set_attribute_binary(devpath, name, value)
Parameters:
set_attribute_hex(devpath, name, value)
Parameters:
  • devpath (str) –
  • name (str) –
  • value (int) –
set_attribute_int(devpath, name, value)
Parameters:
  • devpath (str) –
  • name (str) –
  • value (int) –
Parameters:
  • devpath (str) –
  • name (str) –
  • value (str) –
set_property(devpath, name, value)
Parameters:
  • devpath (str) –
  • name (str) –
  • value (str) –
set_property_hex(devpath, name, value)
Parameters:
  • devpath (str) –
  • name (str) –
  • value (int) –
set_property_int(devpath, name, value)
Parameters:
  • devpath (str) –
  • name (str) –
  • value (int) –
uevent(devpath, action)
Parameters:
  • devpath (str) –
  • action (str) –