SmRestore.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. /* $XConsortium: SmRestore.h /main/10 1996/02/08 11:29:05 barstow $ */
  24. /* *
  25. * (c) Copyright 1993, 1994 Hewlett-Packard Company *
  26. * (c) Copyright 1993, 1994 International Business Machines Corp. *
  27. * (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
  28. * (c) Copyright 1993, 1994 Novell, Inc. *
  29. */
  30. /************************************<+>*************************************
  31. ****************************************************************************
  32. **
  33. ** File: SmRestore.h
  34. **
  35. ** Project: HP DT
  36. **
  37. ** Description
  38. ** -----------
  39. ** Variables and declarations needed for
  40. ** Session Restoration for the session manager
  41. **
  42. **
  43. ** (c) Copyright Hewlett-Packard Company, 1990.
  44. **
  45. **
  46. **
  47. ****************************************************************************
  48. ************************************<+>*************************************/
  49. #ifndef _smrestore_h
  50. #define _smrestore_h
  51. /*
  52. * #include statements
  53. */
  54. #include "SmXSMP.h"
  55. /*
  56. * #define statements
  57. */
  58. #define MAX_REMOTE_CLIENTS 200
  59. /*
  60. * typedef statements
  61. */
  62. /*
  63. * External variables
  64. */
  65. /*
  66. * External Interface
  67. */
  68. extern void ReloadResources( void ) ;
  69. extern int RestoreState( void ) ;
  70. extern int SetCompatState( void ) ;
  71. extern int StartWM( void ) ;
  72. extern int RestoreResources(Boolean, ...) ;
  73. extern int RestorePreferences(char *) ;
  74. extern void RestoreIndependentResources(void) ;
  75. extern void StartEtc( Boolean ) ;
  76. extern void CreateExecString(char *) ;
  77. extern void KillParent( void ) ;
  78. extern void ScanWhitespace( unsigned char **) ;
  79. extern void SystemCmd (char *pchCmd);
  80. extern Boolean StartClient (
  81. char * program,
  82. char ** argv,
  83. char * hostname,
  84. char * cwd,
  85. char ** envp,
  86. Boolean checkCwd,
  87. Boolean useIgnoreEnvResource,
  88. int screen);
  89. extern Boolean StartXSMPSession (
  90. char * databaseName);
  91. extern Boolean StartXSMPClient (
  92. XSMPClientDBRecPtr pDbRec,
  93. char * databaseName);
  94. extern Boolean StartProxyClient (
  95. ProxyClientDBRecPtr pDbRec);
  96. void ExecuteDiscardCommands (
  97. char * db);
  98. extern Boolean ExecuteCommandProperty (
  99. char * propertyName,
  100. ClientRecPtr pClientRec);
  101. PropertyRecPtr GetPropertyRec (
  102. ClientRecPtr pClientRec,
  103. char * propName);
  104. char * GetStringPropertyValue (
  105. ClientRecPtr pClientRec,
  106. char * propName);
  107. #endif /*_smrestore_h*/