Package dbus :: Package mainloop
[hide private]
[frames] | no frames]

Package mainloop

source code

Base definitions, etc. for main loop integration.
Submodules [hide private]

Classes [hide private]
  NativeMainLoop
Object representing D-Bus main loop integration done in native code.
Variables [hide private]
  NULL_MAIN_LOOP = _dbus_bindings.NULL_MAIN_LOOP
A null mainloop which doesn't actually do anything.
  WATCH_READABLE = 1
Represents a file descriptor becoming readable.
  WATCH_WRITABLE = 2
Represents a file descriptor becoming readable.
  WATCH_HANGUP = 8
Represents a file descriptor reaching end-of-file.
  WATCH_ERROR = 4
Represents an error condition on a file descriptor.
Variables Details [hide private]

NULL_MAIN_LOOP

A null mainloop which doesn't actually do anything.

For advanced users who want to dispatch events by hand. This is almost certainly a bad idea - if in doubt, use the GLib main loop found in dbus.mainloop.glib.

Value:
_dbus_bindings.NULL_MAIN_LOOP

WATCH_READABLE

Represents a file descriptor becoming readable. Used to implement file descriptor watches.
Value:
1

WATCH_WRITABLE

Represents a file descriptor becoming readable. Used to implement file descriptor watches.
Value:
2

WATCH_HANGUP

Represents a file descriptor reaching end-of-file. Used to implement file descriptor watches.
Value:
8

WATCH_ERROR

Represents an error condition on a file descriptor. Used to implement file descriptor watches.
Value:
4