mce-dsme.h 1.56 KB
Newer Older
1 2 3 4
/**
 * @file mce-dsme.h
 * Headers for the DSME<->MCE interface and logic
 * <p>
Santtu Lakkala's avatar
Santtu Lakkala committed
5
 * Copyright © 2004-2011 Nokia Corporation and/or its subsidiary(-ies).
6
 * Copyright (C) 2013-2019 Jolla Ltd.
7 8
 * <p>
 * @author David Weinehall <david.weinehall@nokia.com>
9 10 11
 * @author Tapio Rantala <ext-tapio.rantala@nokia.com>
 * @author Santtu Lakkala <ext-santtu.1.lakkala@nokia.com>
 * @author Simo Piiroinen <simo.piiroinen@jollamobile.com>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
 *
 * 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 <http://www.gnu.org/licenses/>.
 */
#ifndef _MCE_DSME_H_
#define _MCE_DSME_H_

#include <glib.h>

30
/** How long to delay removal of MCE_SUBMODE_TRANSITION after
31 32 33 34 35 36
 *  receiving system state change from dsme
 *
 * <0 -> immediately
 *  0 -> from idle callback
 * >0 -> from timer callback after TRANSITION_DELAY ms
 */
37
#define TRANSITION_DELAY                -1
38

39 40 41
void mce_dsme_request_powerup(void);
void mce_dsme_request_reboot(void);
void mce_dsme_request_normal_shutdown(void);
42 43

/* When MCE is made modular, this will be handled differently */
44
gboolean mce_dsme_init(void);
45 46 47
void mce_dsme_exit(void);

#endif /* _MCE_DSME_H_ */