dtwm: Cleanup some implicit definitions
[oweals/cde.git] / cde / programs / dtwm / WmResParse.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 /* 
24  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
25  * ALL RIGHTS RESERVED 
26 */ 
27 /* 
28  * Motif Release 1.2
29 */ 
30 /*   $XConsortium: WmResParse.h /main/5 1996/06/11 16:00:58 rswiston $ */
31 /*
32  * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
33
34 #include <stdio.h>
35
36
37 #ifdef PANELIST
38 extern void            ProcessWmFile (WmScreenData *pSD, Boolean bNested);
39 #else /* PANELIST */
40 extern void ProcessWmFile (WmScreenData *pSD);
41 #endif /* PANELIST */
42 extern void ProcessCommandLine (int argc,  char *argv[]);
43 extern void ProcessMotifBindings (void);
44 #ifdef WSM
45 extern Boolean         FindDtSessionMatch(int commandArgc, 
46                                            char **commandArgv, 
47                                            ClientData *pCD, 
48                                            WmScreenData *pSD, 
49                                            char **pWorkSpaceList,
50                                            char *clientMachine);
51 extern void            WmDtGetHelpArgs(char *args, 
52                                        unsigned char* volume, 
53                                        unsigned char* topic, 
54                                        int *argsCount);
55 extern void GetActionIndex (int tableSize, int *actionIndex);
56 extern void            GetFunctionTableValues (int *execIndex, int *nopIndex,
57                     int *actionIndex);
58 extern void GetNopIndex (int tableSize, int *nopIndex);
59 extern void GetExecIndex (int tableSize, int *execIndex);
60 extern Boolean GetSessionHintsInfo (WmScreenData *pSD, long numItems);
61 #endif /* WSM */
62 extern FILE          * FopenConfigFile (void);
63 extern void            FreeMenuItem (MenuItem *menuItem);
64 #ifndef WSM
65 extern unsigned char * GetNextLine (void);
66 #endif /* not WSM */
67 #ifdef WSM
68 extern unsigned char * GetStringC (unsigned char **linePP, Boolean SmBehavior);
69 extern void SystemCmd (char *pchCmd);
70 #else /* WSM */
71 extern unsigned char * GetString (unsigned char **linePP);
72 #endif /* WSM */
73 extern Boolean ParseBtnEvent (unsigned char  **linePP,
74                               unsigned int *eventType,
75                               unsigned int *button,
76                               unsigned int *state,
77                               Boolean      *fClick);
78
79 extern void            ParseButtonStr (WmScreenData *pSD, unsigned char *buttonStr);
80 extern void            ParseKeyStr (WmScreenData *pSD, unsigned char *keyStr);
81 extern Boolean ParseKeyEvent (unsigned char **linePP, unsigned int *eventType,
82                        KeyCode *keyCode,  unsigned int *state);
83 extern MenuItem      * ParseMwmMenuStr (WmScreenData *pSD, unsigned char *menuStr);
84 #ifdef WSM
85 extern void ParseSessionClientState (WmScreenData *pSD, int count,
86                               unsigned char *string);
87 extern void ParseSessionCommand (WmScreenData *pSD,  int count,
88                           unsigned char **commandString);
89 extern void ParseSessionGeometry (WmScreenData *pSD, int count,
90                            unsigned char *string);
91 extern void ParseSessionItems (WmScreenData *pSD);
92 extern void ParseSessionWorkspaces (WmScreenData *pSD,  int count,
93                              unsigned char *string);
94 extern void ParseSessionHost (WmScreenData *pSD,  int count,
95                              unsigned char *string);
96 extern void ParseDtSessionHints (WmScreenData *pSD, unsigned char *property);
97 #endif /* WSM */
98 extern int             ParseWmFunction (unsigned char **linePP, unsigned int res_spec, WmFunction *pWmFunction);
99 extern void            PWarning (char *message);
100 extern void            SaveMenuAccelerators (WmScreenData *pSD, MenuSpec *newMenuSpec);
101 extern void      ScanAlphanumeric (unsigned char **linePP);
102 #ifndef WSM
103 extern void            ScanWhitespace(unsigned char  **linePP);
104 #endif /* not WSM */
105 extern void            ToLower (unsigned char  *string);
106 extern void             SyncModifierStrings(void);
107 #ifdef PANELIST
108 extern void DeleteTempConfigFileIfAny (void);
109 extern Boolean ParseWmFunctionArg (
110                 unsigned char **linePP,
111                 int ix, 
112                 WmFunction wmFunc, 
113                 void **ppArg,
114                 String sClientName,
115                 String sTitle);
116 extern Boolean ParseWmFuncMaybeStrArg (unsigned char **linePP, 
117                                        WmFunction wmFunction, String *pArgs);
118 extern Boolean ParseWmFuncStrArg (unsigned char **linePP, 
119                                        WmFunction wmFunction, String *pArgs);
120 extern Boolean ParseWmFuncActionArg (unsigned char **linePP, 
121                                   WmFunction wmFunction, String *pArgs);
122 #endif /* PANELIST */
123 #ifdef WSM
124 #define ToLower(s)              (_DtWmParseToLower (s))
125 #define GetNextLine()           (_DtWmParseNextLine (wmGD.pWmPB))
126 #define GetSmartSMString(s)     (_DtWmParseNextTokenC (s, True))
127 #define GetSmartString(s)       (_DtWmParseNextTokenC (s, False))
128 #define GetString(s)            (_DtWmParseNextTokenC (s, False))
129 #define ScanWhitespace(s)       (_DtWmParseSkipWhitespaceC (s))
130 #endif /* WSM */
131
132 #if ((!defined(WSM)) || defined(MWM_QATS_PROTOCOL))
133 extern Boolean IsClientCommand (String);
134 extern Boolean SetGreyedContextAndMgtMask (MenuItem *menuItem,
135                                            WmFunction wmFunction);
136 #endif /* !defined(WSM) || defined(MWM_QATS_PROTOCOL) */