~chunsang/+junk/powerd

« back to all changes in this revision

Viewing changes to libsuspend/libsuspend.h

  • Committer: Tarmac
  • Author(s): Seth Forshee, mfrey at canonical, Matthew Fischer
  • Date: 2013-05-21 15:38:46 UTC
  • mfrom: (9.1.28 powerd)
  • Revision ID: tarmac-20130521153846-10di0d3835ufiu4v
Massive influx of changes including:
1) control file cleanup and new deps
2) support for listening for power requests on dbus
3) tie in to seth's low level libsuspend code
4) a simple C based test client for the power requests.

Approved by Michael Frey, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2013 Canonical Ltd.
 
3
 *
 
4
 * This file is part of powerd.
 
5
 *
 
6
 * powerd is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; version 3.
 
9
 *
 
10
 * powerd is distributed in the hope that it will be useful,
 
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 * GNU General Public License for more details.
 
14
 *
 
15
 * You should have received a copy of the GNU General Public License
 
16
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
17
 */
 
18
 
 
19
#ifndef LIBSUSPEND_H
 
20
#define LIBSUSPEND_H
 
21
 
 
22
#ifdef __cplusplus
 
23
extern "C" {
 
24
#endif
 
25
 
 
26
void libsuspend_init(int force_mock);
 
27
int libsuspend_prepare_suspend(void);
 
28
int libsuspend_enter_suspend(void);
 
29
int libsuspend_exit_suspend(void);
 
30
 
 
31
#ifdef __cplusplus
 
32
}
 
33
#endif
 
34
 
 
35
#endif /* LIBSUSPEND_H */