Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

monitorGuest / EventSource support #66

Open
hh opened this issue Sep 8, 2011 · 1 comment
Open

monitorGuest / EventSource support #66

hh opened this issue Sep 8, 2011 · 1 comment

Comments

@hh
Copy link

hh commented Sep 8, 2011

This looks nice:

def monitorSource(ctx, es, active, dur):
  def handleEventImpl(ev):
    type = ev.type
    print "got event: %s %s" %(str(type), asEnumElem(ctx, 'VBoxEventType', type))
    if type == ctx['global'].constants.VBoxEventType_OnMachineStateChanged:

http://www.virtualbox.org/browser/trunk/src/VBox/Frontends/VBoxShell/vboxshell.py#L312

And would allow for monitorGuestCmd, monitorGuestKbdCmd, monitorGuestMouseCmd, monitorVBoxCmd, and probably recordDemo.

def monitorGuestCmd(ctx, args):
def monitorGuestKbdCmd(ctx, args):
def monitorVBoxCmd(ctx, args):
def recordDemo(ctx, console, file, dur):
def playbackDemo(ctx, console, file, dur):

http://www.virtualbox.org/browser/trunk/src/VBox/Frontends/VBoxShell/vboxshell.py#L383

I suspect it means implementing an event listener, but I still haven't wrapped my head how the current code works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant