iot bootaction: use libandroidthings types.
We now provide some parameters that can be set on reboot and passed into
the bootaction library. This becomes part of the public libandroidthings
native API, so we need to use the public type.
Bug: 65462981
Test: `mma` builds successfully
Test: Test bootaction.so can receive boot params (tested on nyc-iot-dev)
Change-Id: Ibf6548730e0bac023f6a0a3aef925b0938418a10
diff --git a/cmds/bootanimation/iot/BootAction.h b/cmds/bootanimation/iot/BootAction.h
index d8bff75..3cd43be 100644
--- a/cmds/bootanimation/iot/BootAction.h
+++ b/cmds/bootanimation/iot/BootAction.h
@@ -21,6 +21,7 @@
#include <string>
#include <base/json/json_value_converter.h>
+#include <boot_action/boot_action.h> // libandroidthings native API.
#include <utils/RefBase.h>
using base::JSONValueConverter;
@@ -29,11 +30,6 @@
class BootAction : public RefBase {
public:
- struct BootParameter {
- const char* key;
- const char* value;
- };
-
struct SavedBootParameters {
int brightness;
int volume;
@@ -65,7 +61,8 @@
void shutdown();
private:
- typedef bool (*libInit)(const BootParameter* parameters, size_t num_parameters);
+ typedef bool (*libInit)(const ABootActionParameter* parameters,
+ size_t num_parameters);
typedef void (*libStartPart)(int partNumber, int playNumber);
typedef void (*libShutdown)();