/**
* @file mce-sensorfw.h
* Mode Control Entity - Interprocess communication with sensord
*
* Copyright (C) 2013-2019 Jolla Ltd.
*
* @author Simo Piiroinen
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* mce 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with mce. If not, see .
*/
#ifndef MCE_SENSORFW_H_
# define MCE_SENSORFW_H_
# include
# ifdef __cplusplus
extern "C" {
# elif 0
} /* fool JED indentation ... */
# endif
bool mce_sensorfw_init(void);
void mce_sensorfw_quit(void);
void mce_sensorfw_suspend(void);
void mce_sensorfw_resume(void);
void mce_sensorfw_als_attach(int fd);
void mce_sensorfw_als_set_notify(void (*cb)(int lux));
void mce_sensorfw_als_enable(void);
void mce_sensorfw_als_disable(void);
void mce_sensorfw_ps_attach(int fd);
void mce_sensorfw_ps_set_notify(void (*cb)(bool covered));
void mce_sensorfw_ps_enable(void);
void mce_sensorfw_ps_disable(void);
void mce_sensorfw_orient_set_notify(void (*cb)(int state));
void mce_sensorfw_orient_enable(void);
void mce_sensorfw_orient_disable(void);
# ifdef __cplusplus
};
# endif
#endif /* MCE_SENSORFW_H_ */