2
* Copyright (C) 2013 Robert Ancell.
3
* Author: Robert Ancell <robert.ancell@canonical.com>
5
* This program is free software: you can redistribute it and/or modify it under
6
* the terms of the GNU General Public License as published by the Free Software
7
* Foundation, either version 3 of the License, or (at your option) any later
8
* version. See http://www.gnu.org/copyleft/gpl.html the full text of the
12
#ifndef SESSION_CONFIG_H_
13
#define SESSION_CONFIG_H_
15
#include <glib-object.h>
19
#define SESSION_CONFIG_TYPE (session_config_get_type())
20
#define SESSION_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_CONFIG_TYPE, SessionConfig))
21
#define SESSION_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_CONFIG_TYPE, SessionConfigClass))
22
#define SESSION_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_CONFIG_TYPE, SessionConfigClass))
24
typedef struct SessionConfigPrivate SessionConfigPrivate;
28
GObject parent_instance;
29
SessionConfigPrivate *priv;
34
GObjectClass parent_class;
37
GType session_config_get_type (void);
39
SessionConfig *session_config_new_from_file (const gchar *filename, GError **error);
41
const gchar *session_config_get_command (SessionConfig *config);
43
const gchar *session_config_get_session_type (SessionConfig *config);
45
const gchar *session_config_get_desktop_name (SessionConfig *config);
49
#endif /* SESSION_CONFIG_H_ */