2 * Copyright (C) 2013 Canonical Ltd.
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 UNITY_SYSTEM_COMPOSITOR_H_
13 #define UNITY_SYSTEM_COMPOSITOR_H_
15 #include <glib-object.h>
16 #include "display-server.h"
20 #define UNITY_SYSTEM_COMPOSITOR_TYPE (unity_system_compositor_get_type())
21 #define UNITY_SYSTEM_COMPOSITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_SYSTEM_COMPOSITOR_TYPE, UnitySystemCompositor))
22 #define IS_UNITY_SYSTEM_COMPOSITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_SYSTEM_COMPOSITOR_TYPE))
24 typedef struct UnitySystemCompositorPrivate UnitySystemCompositorPrivate;
28 DisplayServer parent_instance;
29 UnitySystemCompositorPrivate *priv;
30 } UnitySystemCompositor;
34 DisplayServerClass parent_class;
35 } UnitySystemCompositorClass;
37 GType unity_system_compositor_get_type (void);
39 UnitySystemCompositor *unity_system_compositor_new (void);
41 void unity_system_compositor_set_command (UnitySystemCompositor *compositor, const gchar *command);
43 void unity_system_compositor_set_socket (UnitySystemCompositor *compositor, const gchar *socket);
45 const gchar *unity_system_compositor_get_socket (UnitySystemCompositor *compositor);
47 void unity_system_compositor_set_vt (UnitySystemCompositor *compositor, gint vt);
49 void unity_system_compositor_set_timeout (UnitySystemCompositor *compositor, gint timeout);
51 void unity_system_compositor_set_active_session (UnitySystemCompositor *compositor, const gchar *id);
53 void unity_system_compositor_set_next_session (UnitySystemCompositor *compositor, const gchar *id);
57 #endif /* UNITY_SYSTEM_COMPOSITOR_H_ */