-void session_load(char *path);
-void session_startup(int argc, char **argv);
-void session_shutdown();
+#include "client.h"
+#include "screen.h"
+
+#include <glib.h>
+
+typedef struct _ObSessionState ObSessionState;
+
+struct _ObSessionState {
+ gchar *id, *command, *name, *class, *role;
+ ObClientType type;
+ guint desktop;
+ gint x, y, w, h;
+ gboolean shaded, iconic, skip_pager, skip_taskbar, fullscreen;
+ gboolean above, below, max_horz, max_vert, undecorated;
+ gboolean focused;
+
+ gboolean matched;
+};
+
+/*! The desktop being viewed when the session was saved. A valud of -1 means
+ it was not saved */
+extern gint session_desktop;
+extern gint session_num_desktops;
+extern gboolean session_desktop_layout_present;
+extern ObDesktopLayout session_desktop_layout;
+extern GSList *session_desktop_names;
+
+extern GList *session_saved_state;
+
+void session_startup(gint argc, gchar **argv);
+void session_shutdown(gboolean permanent);
+
+GList* session_state_find(struct _ObClient *c);
+
+void session_request_logout(gboolean silent);
+
+gboolean session_connected(void);