blob: ef98688bf4dfc96383b76661fec4e7c7ad9f9220 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef NHM_SYSTEMD
#define NHM_SYSTEMD
/* NHM - NodeHealthMonitor
*
* Functions to observe system health with systemd
*
* Author: Jean-Pierre Bogler <Jean-Pierre.Bogler@continental-corporation.com>
*
* Copyright (C) 2013 Continental Automotive Systems, Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/.
*/
/*******************************************************************************
*
* Header includes
*
*******************************************************************************/
#include <gio/gio.h> /* Use gtypes */
#include "inc/NodeHealthMonitor.h" /* Use NHM app status defines */
/*******************************************************************************
*
* Exported variables, constants and defines
*
*******************************************************************************/
typedef void (*NhmSystemdAppStatusCb)(const gchar *name, NhmAppStatus_e status);
/*******************************************************************************
*
* Exported functions
*
*******************************************************************************/
gboolean nhm_systemd_connect (NhmSystemdAppStatusCb app_status_cb);
void nhm_systemd_disconnect(void);
#endif /* NHM_SYSTEMD */
|