1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /* This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License along
13 * with this program; if not, write to the Free Software Foundation, Inc.,
14 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16 * (C) Copyright 2012 Red Hat, Inc.
17 * Author: Matthias Clasen <mclasen@redhat.com>
20 #ifndef __NETWORKMANAGER_SLEEP_MONITOR_H__
21 #define __NETWORKMANAGER_SLEEP_MONITOR_H__
24 #include "nm-default.h"
28 #define NM_TYPE_SLEEP_MONITOR (nm_sleep_monitor_get_type ())
29 #define NM_SLEEP_MONITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), NM_TYPE_SLEEP_MONITOR, NMSleepMonitor))
30 #define NM_SLEEP_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), NM_TYPE_SLEEP_MONITOR, NMSleepMonitorClass))
31 #define NM_SLEEP_MONITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), NM_TYPE_SLEEP_MONITOR, NMSleepMonitorClass))
32 #define NM_IS_SLEEP_MONITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), NM_TYPE_SLEEP_MONITOR))
33 #define NM_IS_SLEEP_MONITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), NM_TYPE_SLEEP_MONITOR))
35 #define NM_SLEEP_MONITOR_SLEEPING "sleeping"
36 #define NM_SLEEP_MONITOR_RESUMING "resuming"
38 typedef struct _NMSleepMonitorClass NMSleepMonitorClass;
40 GType nm_sleep_monitor_get_type (void) G_GNUC_CONST;
41 NMSleepMonitor *nm_sleep_monitor_get (void);
45 #endif /* __NETWORKMANAGER_SLEEP_MONITOR_H__ */