Use C++ linker
[oweals/cde.git] / cde / programs / dtwm / WmXSMP.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 #ifndef _WmXSMP_h
24 #define _WmXSMP_h
25
26 /* $XConsortium: WmXSMP.h /main/4 1996/04/19 11:22:40 rswiston $ */
27 /*
28  * (c) Copyright 1996 Digital Equipment Corporation.
29  * (c) Copyright 1996 Hewlett-Packard Company.
30  * (c) Copyright 1996 International Business Machines Corp.
31  * (c) Copyright 1996 Sun Microsystems, Inc.
32  * (c) Copyright 1996 Novell, Inc. 
33  * (c) Copyright 1996 FUJITSU LIMITED.
34  * (c) Copyright 1996 Hitachi.
35  */
36
37 #include <X11/Intrinsic.h>
38 #include "WmGlobal.h"
39
40 /* Atoms used for session management capabilities. */
41 #define _XA_DT_SM_CLIENT_ID             "SM_CLIENT_ID"
42 #define _XA_DT_WMSAVE_HINT              "_DT_WMSAVE_HINT"
43
44 /* _DT_WMSAVE_HINT flag definitions */
45 #define WMSAVE_X                (1L << 0)
46 #define WMSAVE_Y                (1L << 1)
47 #define WMSAVE_WIDTH            (1L << 2)
48 #define WMSAVE_HEIGHT           (1L << 3)
49 #define WMSAVE_STATE            (1L << 4)
50 #ifdef WSM
51 # define WMSAVE_WORKSPACES      (1L << 5)
52 #endif
53 #define WMSAVE_ICON_X           (1L << 6)
54 #define WMSAVE_ICON_Y           (1L << 7)
55
56 extern void AddSMCallbacks(void);
57 extern void ResignFromSM(void);
58 extern void ExitWM(int exitCode);
59 extern XrmDatabase LoadClientResourceDB(void);
60 extern XrmDatabase SaveClientResourceDB(void);
61 extern Boolean FindClientDBMatch(ClientData *, char **);
62 extern Boolean GetSmClientIdClientList(ClientData ***, int *);
63 extern void SortClientListByWorkspace(ClientData **, int);
64 #ifdef WSM
65 extern void LoadClientIconPositions(ClientData *);
66 #endif
67
68 #endif /* _WmXSMP_h */