/*
 * power.h
 *
 * Copyright (C) 2016 Aleksandar Andrejevic <theflash@sdf.lonestar.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _POWER_H_
#define _POWER_H_

#include <sdk/power.h>

typedef enum
{
    POWER_STATE_STANDBY = 1,
    POWER_STATE_SUSPEND,
    POWER_STATE_OFF,
} power_state_t;

typedef dword_t (*power_set_state_proc_t)(power_state_t state);

typedef struct
{
    power_set_state_proc_t set_state;
} power_callbacks_t;

dword_t power_init(void);
dword_t register_power_callbacks(power_callbacks_t *callbacks);

#endif
