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
diff --git a/android/hw-control.c b/android/hw-control.c
index d99f7e3..6dac8c2 100644
--- a/android/hw-control.c
+++ b/android/hw-control.c
@@ -68,7 +68,7 @@
client = qemud_client_new( service, channel,
opaque,
_hw_control_qemud_client_recv,
- NULL );
+ NULL, NULL, NULL );
qemud_client_set_framing(client, 1);
return client;
@@ -123,7 +123,8 @@
control->client_funcs = client_funcs[0];
control->service = qemud_service_register( "hw-control", 0,
control,
- _hw_control_qemud_connect );
+ _hw_control_qemud_connect,
+ NULL, NULL);
}
void