dtcm: Coverity 89287
[oweals/cde.git] / cde / programs / dtwm / WmWrkspace.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 /* 
24  * (c) Copyright 1987,1988,1989,1990,1992,1993,1994 HEWLETT-PACKARD COMPANY 
25  * (c) Copyright 1993, 1994 International Business Machines Corp.
26  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
27  * (c) Copyright 1993, 1994 Novell, Inc.
28  * ALL RIGHTS RESERVED 
29  */ 
30
31 /********    Public Function Declarations    ********/
32
33 extern void ChangeToWorkspace( 
34                         WmWorkspaceData *pNewWS) ;
35 extern void ChangeWorkspaceTitle( WmWorkspaceData *pWS, char * pchTitle);
36 extern Boolean DuplicateWorkspaceName (
37                         WmScreenData *pSD, 
38                         unsigned char *name, 
39                         int num);
40 extern void UpdateWorkspacePresenceProperty( 
41                         ClientData *pCD) ;
42 #ifdef HP_VUE
43 extern void UpdateWorkspaceInfoProperty( 
44                         WmScreenData *pSD) ;
45 #endif /* HP_VUE */
46 extern WmWorkspaceData * CreateWorkspace( 
47                         WmScreenData *pSD,
48                         unsigned char *name) ;
49 extern void DeleteWorkspace( 
50                         WmWorkspaceData *pWS) ;
51 extern Boolean GetClientWorkspaceInfo( 
52                         ClientData *pCD,
53                         long manageFlags) ;
54 extern Boolean WorkspaceIsInCommand( 
55                         Display *dpy,
56                         ClientData *pCD,
57                         WorkspaceID **ppIDs,
58                         unsigned int *pNumIDs) ;
59 extern Boolean ConvertNamesToIDs( 
60                         WmScreenData *pSD,
61                         unsigned char *pchIn,
62                         WorkspaceID **ppAtoms,
63                         unsigned int *pNumAtoms) ;
64 extern void CheckForPutInAllRequest( 
65                         ClientData *pCD,
66                         Atom *pIDs,
67                         unsigned int numIDs) ;
68 extern Boolean FindWsNameInCommand( 
69                         int argc,
70                         char *argv[],
71                         unsigned char **ppch) ;
72 extern void PutClientIntoWorkspace( 
73                         WmWorkspaceData *pWS,
74                         ClientData *pCD) ;
75 extern void TakeClientOutOfWorkspace( 
76                         WmWorkspaceData *pWS,
77                         ClientData *pCD) ;
78 extern WmWorkspaceData * GetWorkspaceData( 
79                         WmScreenData *pSD,
80                         WorkspaceID wsID) ;
81 extern unsigned char * GenerateWorkspaceName( 
82                         WmScreenData *pSD,
83                         int wsnum) ;
84 extern Boolean InWindowList( 
85                         Window w,
86                         Window wl[],
87                         int num) ;
88 extern Boolean ClientInWorkspace( 
89                         WmWorkspaceData *pWS,
90                         ClientData *pCD) ;
91 extern WsClientData * GetWsClientData( 
92                         WmWorkspaceData *pWS,
93                         ClientData *pCD) ;
94 extern void SetClientWsIndex( 
95                         ClientData *pCD) ;
96 void ProcessDtWmHints (ClientData *pCD) ;
97 extern Boolean ProcessWorkspaceHints( 
98                         ClientData *pCD) ;
99 extern void ProcessWorkspaceHintList( 
100                         ClientData *pCD,
101                         WorkspaceID *pIDs,
102                         unsigned int numIDs) ;
103 extern void RemoveSingleClientFromWorkspaces( 
104                         ClientData *pCD,
105                         WorkspaceID *pIDs,
106                         unsigned int numIDs) ;
107 extern void RemoveSubtreeFromWorkspaces( 
108                         ClientData *pCD,
109                         WorkspaceID *pIDs,
110                         unsigned int numIDs) ;
111 extern WorkspaceID * GetListOfOccupiedWorkspaces( 
112                         ClientData *pCD,
113                         int *numIDs) ;
114 extern void HonorAbsentMapBehavior(
115                         ClientData *pCD) ;
116 extern void RemoveClientFromWorkspaces( 
117                         ClientData *pCD,
118                         WorkspaceID *pIDs,
119                         unsigned int numIDs) ;
120 extern void AddSingleClientToWorkspaces( 
121                         ClientData *pCD,
122                         WorkspaceID *pIDs,
123                         unsigned int numIDs) ;
124 extern void AddSubtreeToWorkspaces( 
125                         ClientData *pCD,
126                         WorkspaceID *pIDs,
127                         unsigned int numIDs) ;
128 extern void AddClientToWorkspaces( 
129                         ClientData *pCD,
130                         WorkspaceID *pIDs,
131                         unsigned int numIDs) ;
132 extern void AddClientToWsList( 
133                         WmWorkspaceData *pWS,
134                         ClientData *pCD) ;
135 extern void RemoveClientFromWsList( 
136                         WmWorkspaceData *pWS,
137                         ClientData *pCD) ;
138 extern Boolean F_CreateWorkspace( 
139                         String args,
140                         ClientData *pCD,
141                         XEvent *event) ;
142 extern Boolean F_DeleteWorkspace( 
143                         String args,
144                         ClientData *pCD,
145                         XEvent *event) ;
146 extern Boolean F_GotoWorkspace( 
147                         String args,
148                         ClientData *pCD,
149                         XEvent *event) ;
150 extern Boolean F_AddToAllWorkspaces( 
151                         String args,
152                         ClientData *pCD,
153                         XEvent *event) ;
154 extern Boolean F_Remove( 
155                         String args,
156                         ClientData *pCD,
157                         XEvent *event) ;
158 extern int GetCurrentWorkspaceIndex( 
159                         WmScreenData *pSD) ;
160 extern void InsureIconForWorkspace( 
161                         WmWorkspaceData *pWS,
162                         ClientData *pCD) ;
163 extern Boolean GetLeaderPresence( 
164                         ClientData *pCD,
165                         WorkspaceID **ppIDs,
166                         unsigned int *pnumIDs) ;
167 extern Boolean GetMyOwnPresence( 
168                         ClientData *pCD,
169                         WorkspaceID **ppIDs,
170                         unsigned int *pnumIDs) ;
171 extern void ReserveIdListSpace( 
172                         int numIDs) ;
173 extern void SaveWorkspaceResources( 
174                         WmWorkspaceData *pWS,
175                         unsigned long flags) ;
176 extern void SaveResources( 
177                         WmScreenData *pSD) ;
178 extern void AddStringToResourceData( 
179                         char *string,
180                         char **pdata,
181                         int *plen) ;
182 extern void SetCurrentWorkspaceButton(
183                         WmScreenData *pSD);
184 extern void SetFrontPanelTitle( 
185                         WmScreenData *pSD);
186
187 /********    End Public Function Declarations    ********/
188