WmResParse.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  25. * ALL RIGHTS RESERVED
  26. */
  27. /*
  28. * Motif Release 1.2
  29. */
  30. /*
  31. * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
  32. #include <stdio.h>
  33. extern void ProcessWmFile (WmScreenData *pSD, Boolean bNested);
  34. extern void ProcessCommandLine (int argc, char *argv[]);
  35. extern void ProcessMotifBindings (void);
  36. extern Boolean FindDtSessionMatch(int commandArgc,
  37. char **commandArgv,
  38. ClientData *pCD,
  39. WmScreenData *pSD,
  40. char **pWorkSpaceList,
  41. char *clientMachine);
  42. extern void WmDtGetHelpArgs(char *args,
  43. unsigned char* volume,
  44. unsigned char* topic,
  45. int *argsCount);
  46. extern void GetActionIndex (int tableSize, int *actionIndex);
  47. extern void GetFunctionTableValues (int *execIndex, int *nopIndex,
  48. int *actionIndex);
  49. extern void GetNopIndex (int tableSize, int *nopIndex);
  50. extern void GetExecIndex (int tableSize, int *execIndex);
  51. extern Boolean GetSessionHintsInfo (WmScreenData *pSD, long numItems);
  52. extern FILE * FopenConfigFile (void);
  53. extern void FreeMenuItem (MenuItem *menuItem);
  54. extern unsigned char * GetStringC (unsigned char **linePP, Boolean SmBehavior);
  55. extern void SystemCmd (char *pchCmd);
  56. extern Boolean ParseBtnEvent (unsigned char **linePP,
  57. unsigned int *eventType,
  58. unsigned int *button,
  59. unsigned int *state,
  60. Boolean *fClick);
  61. extern void ParseButtonStr (WmScreenData *pSD, unsigned char *buttonStr);
  62. extern void ParseKeyStr (WmScreenData *pSD, unsigned char *keyStr);
  63. extern Boolean ParseKeyEvent (unsigned char **linePP, unsigned int *eventType,
  64. KeyCode *keyCode, unsigned int *state);
  65. extern MenuItem * ParseMwmMenuStr (WmScreenData *pSD, unsigned char *menuStr);
  66. extern void ParseSessionClientState (WmScreenData *pSD, int count,
  67. unsigned char *string);
  68. extern void ParseSessionCommand (WmScreenData *pSD, int count,
  69. unsigned char **commandString);
  70. extern void ParseSessionGeometry (WmScreenData *pSD, int count,
  71. unsigned char *string);
  72. extern void ParseSessionItems (WmScreenData *pSD);
  73. extern void ParseSessionWorkspaces (WmScreenData *pSD, int count,
  74. unsigned char *string);
  75. extern void ParseSessionHost (WmScreenData *pSD, int count,
  76. unsigned char *string);
  77. extern void ParseDtSessionHints (WmScreenData *pSD, unsigned char *property);
  78. extern int ParseWmFunction (unsigned char **linePP, unsigned int res_spec, WmFunction *pWmFunction);
  79. extern void PWarning (char *message);
  80. extern void SaveMenuAccelerators (WmScreenData *pSD, MenuSpec *newMenuSpec);
  81. extern void ScanAlphanumeric (unsigned char **linePP);
  82. extern void ToLower (unsigned char *string);
  83. extern void SyncModifierStrings(void);
  84. extern void DeleteTempConfigFileIfAny (void);
  85. extern Boolean ParseWmFunctionArg (
  86. unsigned char **linePP,
  87. int ix,
  88. WmFunction wmFunc,
  89. void **ppArg,
  90. String sClientName,
  91. String sTitle);
  92. extern Boolean ParseWmFuncMaybeStrArg (unsigned char **linePP,
  93. WmFunction wmFunction, String *pArgs);
  94. extern Boolean ParseWmFuncStrArg (unsigned char **linePP,
  95. WmFunction wmFunction, String *pArgs);
  96. extern Boolean ParseWmFuncActionArg (unsigned char **linePP,
  97. WmFunction wmFunction, String *pArgs);
  98. #define ToLower(s) (_DtWmParseToLower (s))
  99. #define GetNextLine() (_DtWmParseNextLine (wmGD.pWmPB))
  100. #define GetSmartSMString(s) (_DtWmParseNextTokenC (s, True))
  101. #define GetSmartString(s) (_DtWmParseNextTokenC (s, False))
  102. #define GetString(s) (_DtWmParseNextTokenC (s, False))
  103. #define ScanWhitespace(s) (_DtWmParseSkipWhitespaceC (s))