diff options
author | Ot ten Thije <ottenthije@google.com> | 2010-09-20 10:29:22 +0100 |
---|---|---|
committer | Ot ten Thije <ottenthije@google.com> | 2010-10-14 16:20:03 +0100 |
commit | 871da2aa80687142bec00ef7c1112253c76c32bb (patch) | |
tree | 02e55b1f236f63516c13b47e1b68b092b400f390 /android/boot-properties.c | |
parent | bd62acb45d0199940f3baecfa288a2173e4428ae (diff) | |
download | external_qemu-871da2aa80687142bec00ef7c1112253c76c32bb.zip external_qemu-871da2aa80687142bec00ef7c1112253c76c32bb.tar.gz external_qemu-871da2aa80687142bec00ef7c1112253c76c32bb.tar.bz2 |
Added state snapshot support for QemuD.
With this patch, both modem and sensor functionality are correctly
restored when a state snapshot is loaded. This was not the case
previously because communication with either of these services is
done using the qemud daemon, which did not support snapshots.
The boot-properties and charpipe services have no specific save/load
functionality yet, since the framework itself should be reviewed
first. Adding support for bootproperties should not be difficult
though, and charpipe may not need it.
For a description of the high-level process for saving and loading,
consult section IV "State snapshots" in docs/ANDROID-QEMUD.TXT.
Change-Id: I5b06d88b911ca096e78060163174904c48a01c66
Diffstat (limited to 'android/boot-properties.c')
-rw-r--r-- | android/boot-properties.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/android/boot-properties.c b/android/boot-properties.c index 7810b0d..c094202 100644 --- a/android/boot-properties.c +++ b/android/boot-properties.c @@ -155,7 +155,7 @@ boot_property_service_connect( void* opaque, client = qemud_client_new( serv, channel, NULL, boot_property_client_recv, - NULL ); + NULL, NULL, NULL ); qemud_client_set_framing(client, 1); return client; @@ -168,7 +168,8 @@ boot_property_init_service( void ) if (!_inited) { QemudService* serv = qemud_service_register( SERVICE_NAME, 1, NULL, - boot_property_service_connect ); + boot_property_service_connect, + NULL, NULL); if (serv == NULL) { derror("could not register '%s' service", SERVICE_NAME); return; |