2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
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
24 * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
30 /* $XConsortium: WmResParse.h /main/5 1996/06/11 16:00:58 rswiston $ */
32 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
38 extern void ProcessWmFile (WmScreenData *pSD, Boolean bNested);
40 extern void ProcessWmFile (WmScreenData *pSD);
42 extern void ProcessCommandLine (int argc, char *argv[]);
43 extern void ProcessMotifBindings (void);
45 extern Boolean FindDtSessionMatch(int commandArgc,
49 char **pWorkSpaceList,
51 extern void WmDtGetHelpArgs(char *args,
52 unsigned char* volume,
55 extern void GetActionIndex (int tableSize, int *actionIndex);
56 extern void GetFunctionTableValues (int *execIndex, int *nopIndex,
58 extern void GetNopIndex (int tableSize, int *nopIndex);
59 extern void GetExecIndex (int tableSize, int *execIndex);
60 extern Boolean GetSessionHintsInfo (WmScreenData *pSD, long numItems);
62 extern FILE * FopenConfigFile (void);
63 extern void FreeMenuItem (MenuItem *menuItem);
65 extern unsigned char * GetNextLine (void);
68 extern unsigned char * GetStringC (unsigned char **linePP, Boolean SmBehavior);
69 extern void SystemCmd (char *pchCmd);
71 extern unsigned char * GetString (unsigned char **linePP);
73 extern Boolean ParseBtnEvent (unsigned char **linePP,
74 unsigned int *eventType,
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);
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);
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);
103 extern void ScanWhitespace(unsigned char **linePP);
105 extern void ToLower (unsigned char *string);
106 extern void SyncModifierStrings(void);
108 extern void DeleteTempConfigFileIfAny (void);
109 extern Boolean ParseWmFunctionArg (
110 unsigned char **linePP,
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 */
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))
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) */