dtcm: Coverity 89287
[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 libraries 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 /*
27  * (c) Copyright 1996 Digital Equipment Corporation.
28  * (c) Copyright 1996 Hewlett-Packard Company.
29  * (c) Copyright 1996 International Business Machines Corp.
30  * (c) Copyright 1996 Sun Microsystems, Inc.
31  * (c) Copyright 1996 Novell, Inc. 
32  * (c) Copyright 1996 FUJITSU LIMITED.
33  * (c) Copyright 1996 Hitachi.
34  */
35
36 #include <X11/Intrinsic.h>
37 #include "WmGlobal.h"
38
39 /* Atoms used for session management capabilities. */
40 #define _XA_DT_SM_CLIENT_ID             "SM_CLIENT_ID"
41 #define _XA_DT_WMSAVE_HINT              "_DT_WMSAVE_HINT"
42
43 /* _DT_WMSAVE_HINT flag definitions */
44 #define WMSAVE_X                (1L << 0)
45 #define WMSAVE_Y                (1L << 1)
46 #define WMSAVE_WIDTH            (1L << 2)
47 #define WMSAVE_HEIGHT           (1L << 3)
48 #define WMSAVE_STATE            (1L << 4)
49 #define WMSAVE_WORKSPACES       (1L << 5)
50 #define WMSAVE_ICON_X           (1L << 6)
51 #define WMSAVE_ICON_Y           (1L << 7)
52
53 extern void AddSMCallbacks(void);
54 extern void ResignFromSM(void);
55 extern void ExitWM(int exitCode);
56 extern XrmDatabase LoadClientResourceDB(void);
57 extern XrmDatabase SaveClientResourceDB(void);
58 extern Boolean FindClientDBMatch(ClientData *, char **);
59 extern Boolean GetSmClientIdClientList(ClientData ***, int *);
60 extern void SortClientListByWorkspace(ClientData **, int);
61 extern void LoadClientIconPositions(ClientData *);
62
63 #endif /* _WmXSMP_h */