2
* Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
3
* Copyright (c) 2010 Ali Abdallah <aliov@xfce.org>
4
* Copyright (c) 2011 Nick Schermer <nick@xfce.org>
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2, or (at your option)
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
23
#ifndef __XFSM_CONSOLEKIT_HELPER_H__
24
#define __XFSM_CONSOLEKIT_HELPER_H__
26
typedef struct _XfsmConsolekitClass XfsmConsolekitClass;
27
typedef struct _XfsmConsolekit XfsmConsolekit;
29
#define XFSM_TYPE_CONSOLEKIT (xfsm_consolekit_get_type ())
30
#define XFSM_CONSOLEKIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), XFSM_TYPE_CONSOLEKIT, XfsmConsolekit))
31
#define XFSM_CONSOLEKIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), XFSM_TYPE_CONSOLEKIT, XfsmConsolekitClass))
32
#define XFSM_IS_CONSOLEKIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), XFSM_TYPE_CONSOLEKIT))
33
#define XFSM_IS_CONSOLEKIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), XFSM_TYPE_CONSOLEKIT))
34
#define XFSM_CONSOLEKIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), XFSM_TYPE_CONSOLEKIT, XfsmConsolekitClass))
36
GType xfsm_consolekit_get_type (void) G_GNUC_CONST;
38
XfsmConsolekit *xfsm_consolekit_get (void);
40
gboolean xfsm_consolekit_try_restart (XfsmConsolekit *consolekit,
43
gboolean xfsm_consolekit_try_shutdown (XfsmConsolekit *consolekit,
46
gboolean xfsm_consolekit_can_restart (XfsmConsolekit *consolekit,
47
gboolean *can_restart,
50
gboolean xfsm_consolekit_can_shutdown (XfsmConsolekit *consolekit,
51
gboolean *can_shutdown,
54
#endif /* !__XFSM_CONSOLEKIT_HELPER_H__ */