/* * Copyright (C) 2020 Arnaud Ferraris * * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #include "manager.h" int gpio_init(struct EG25Manager *state, toml_table_t *config[]); void gpio_destroy(struct EG25Manager *state); int gpio_sequence_poweron(struct EG25Manager *state); int gpio_sequence_shutdown(struct EG25Manager *state); int gpio_sequence_suspend(struct EG25Manager *state); int gpio_sequence_resume(struct EG25Manager *state); int gpio_sequence_wake(struct EG25Manager *state); int gpio_sequence_sleep(struct EG25Manager *state); gboolean gpio_check_poweroff(struct EG25Manager *manager, gboolean keep_down);