libkeepalive
keepalive-cpukeepalive.h
Go to the documentation of this file.
1 /****************************************************************************************
2 **
3 ** Copyright (C) 2014 - 2018 Jolla Ltd.
4 **
5 ** Author: Simo Piiroinen <simo.piiroinen@jollamobile.com>
6 **
7 ** All rights reserved.
8 **
9 ** This file is part of nemo-keepalive package.
10 **
11 ** You may use this file under the terms of the GNU Lesser General
12 ** Public License version 2.1 as published by the Free Software Foundation
13 ** and appearing in the file license.lgpl included in the packaging
14 ** of this file.
15 **
16 ** This library is free software; you can redistribute it and/or
17 ** modify it under the terms of the GNU Lesser General Public
18 ** License version 2.1 as published by the Free Software Foundation
19 ** and appearing in the file license.lgpl included in the packaging
20 ** of this file.
21 **
22 ** This library is distributed in the hope that it will be useful,
23 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
24 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 ** Lesser General Public License for more details.
26 **
27 ****************************************************************************************/
28 
34 #ifndef KEEPALIVE_GLIB_CPUKEEPALIVE_H_
35 # define KEEPALIVE_GLIB_CPUKEEPALIVE_H_
36 
37 # ifdef __cplusplus
38 extern "C" {
39 # elif 0
40 } /* fool JED indentation ... */
41 # endif
42 
43 # pragma GCC visibility push(default)
44 
50 typedef struct cpukeepalive_t cpukeepalive_t;
51 
64 
74 
84 
94 
100 
112 const char *cpukeepalive_get_id(const cpukeepalive_t *self);
113 
114 # pragma GCC visibility pop
115 
116 # ifdef __cplusplus
117 };
118 # endif
119 
120 #endif // KEEPALIVE_GLIB_CPUKEEPALIVE_H_
cpukeepalive_stop
void cpukeepalive_stop(cpukeepalive_t *self)
cpukeepalive_new
cpukeepalive_t * cpukeepalive_new(void)
cpukeepalive_ref
cpukeepalive_t * cpukeepalive_ref(cpukeepalive_t *self)
cpukeepalive_get_id
const char * cpukeepalive_get_id(const cpukeepalive_t *self)
cpukeepalive_unref
void cpukeepalive_unref(cpukeepalive_t *self)
cpukeepalive_t
struct cpukeepalive_t cpukeepalive_t
Definition: keepalive-cpukeepalive.h:50
cpukeepalive_start
void cpukeepalive_start(cpukeepalive_t *self)