diff options
Diffstat (limited to 'cmds/bootanimation/iot/BootAction.h')
-rw-r--r-- | cmds/bootanimation/iot/BootAction.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cmds/bootanimation/iot/BootAction.h b/cmds/bootanimation/iot/BootAction.h index 31d0d1f65b95..5e2495fe6c51 100644 --- a/cmds/bootanimation/iot/BootAction.h +++ b/cmds/bootanimation/iot/BootAction.h @@ -18,7 +18,9 @@ #define _BOOTANIMATION_BOOTACTION_H #include <string> +#include <vector> +#include <boot_action/boot_action.h> // libandroidthings native API. #include <utils/RefBase.h> namespace android { @@ -26,11 +28,10 @@ namespace android { class BootAction : public RefBase { public: ~BootAction(); - // Parse the contents of the config file. We expect one line: - // LIBRARY_NAME= - // - // LIBRARY_NAME is the name of the shared library that contains the boot action. - bool init(const std::string& libraryPath, const std::string& config); + + // libraryPath is a fully qualified path to the target .so library. + bool init(const std::string& libraryPath, + const std::vector<ABootActionParameter>& parameters); // The animation is going to start playing partNumber for the playCount'th // time, update the action as needed. @@ -43,13 +44,12 @@ public: void shutdown(); private: - typedef bool (*libInit)(); + typedef bool (*libInit)(const ABootActionParameter* parameters, + size_t num_parameters); typedef void (*libStartPart)(int partNumber, int playNumber); typedef void (*libShutdown)(); - bool parseConfig(const std::string& config, std::string* path); bool loadSymbol(const char* symbol, void** loaded); - const char* architectureDirectory(); void* mLibHandle = nullptr; libInit mLibInit = nullptr; |