Skip to content

Commit

Permalink
qemu-ga: move channel/transport functionality into wrapper class
Browse files Browse the repository at this point in the history
This is mostly in preparation for the win32 port, which won't use
GIO channels for reasons that will be made clearer later. Here the
GAChannel class is just a loose wrapper around GIOChannel
calls/callbacks, but we also roll in the logic/configuration for
various channel types and managing unix socket connections, which makes
the abstraction much more complete and further aids in the win32 port
since isa-serial/unix-listen will not be supported initially.

There's also a bit of refactoring in the main logic to consolidate the
exit paths so we can do common cleanup for things like pid files, which
weren't always cleaned up previously.
  • Loading branch information
mdroth committed Feb 23, 2012
1 parent 5438372 commit 125b310
Show file tree
Hide file tree
Showing 5 changed files with 355 additions and 233 deletions.
1 change: 1 addition & 0 deletions Makefile.objs
Expand Up @@ -425,6 +425,7 @@ common-obj-y += qmp.o hmp.o
# guest agent

qga-nested-y = guest-agent-commands.o guest-agent-command-state.o
qga-nested-y += channel-posix.o
qga-obj-y = $(addprefix qga/, $(qga-nested-y))
qga-obj-y += qemu-ga.o qemu-sockets.o module.o qemu-option.o
qga-obj-$(CONFIG_WIN32) += oslib-win32.o
Expand Down

0 comments on commit 125b310

Please sign in to comment.