13e747e6dSmrg/*
23e747e6dSmrg * Copyright (C) 1998 The XFree86 Project, Inc.  All Rights Reserved.
33e747e6dSmrg *
43e747e6dSmrg * Permission is hereby granted, free of charge, to any person obtaining a copy
53e747e6dSmrg * of this software and associated documentation files (the "Software"), to
63e747e6dSmrg * deal in the Software without restriction, including without limitation the
73e747e6dSmrg * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
83e747e6dSmrg * sell copies of the Software, and to permit persons to whom the Software is
93e747e6dSmrg * furnished to do so, subject to the following conditions:
103e747e6dSmrg *
113e747e6dSmrg * The above copyright notice and this permission notice shall be included in
123e747e6dSmrg * all copies or substantial portions of the Software.
133e747e6dSmrg *
143e747e6dSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
153e747e6dSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
163e747e6dSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
173e747e6dSmrg * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
183e747e6dSmrg * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
193e747e6dSmrg * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
203e747e6dSmrg *
213e747e6dSmrg * Except as contained in this notice, the name of the XFree86 Project shall
223e747e6dSmrg * not be used in advertising or otherwise to promote the sale, use or other
233e747e6dSmrg * dealings in this Software without prior written authorization from the
243e747e6dSmrg * XFree86 Project.
253e747e6dSmrg */
266d8e82c3Smrg#ifndef SESSION_H
276d8e82c3Smrg#define SESSION_H
28f66df612Smrg
29f66df612Smrg#include "twm.h"
30f66df612Smrg
313e747e6dSmrg#include <X11/SM/SMlib.h>
323e747e6dSmrg
336d8e82c3Smrgextern void ConnectToSessionManager(char *previous_id, XtAppContext appContext);
34f66df612Smrgextern int GetWindowConfig(TwmWindow *theWindow, short *x, short *y,
35f66df612Smrg                           unsigned short *width, unsigned short *height,
36f66df612Smrg                           Bool *iconified, Bool *icon_info_present,
37f66df612Smrg                           short *icon_x, short *icon_y,
38f66df612Smrg                           Bool *width_ever_changed_by_user,
39f66df612Smrg                           Bool *height_ever_changed_by_user);
40f66df612Smrgextern void ReadWinConfigFile(char *filename);
416d8e82c3Smrgextern void DestroySession(void);
42ffd25bcaSmrg
433e747e6dSmrgextern SmcConn smcConn;
443e747e6dSmrg
456d8e82c3Smrg#endif /* SESSION_H */
46