dtfile: remove register keyword
[oweals/cde.git] / cde / programs / dtsession / SmRestore.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 /* $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 /* 
53  *  #include statements 
54  */
55 #include "SmXSMP.h"
56
57 /* 
58  *  #define statements 
59  */
60 #define MAX_REMOTE_CLIENTS      200
61
62 /* 
63  * typedef statements 
64  */
65 /*
66  *  External variables  
67  */
68
69
70 /*  
71  *  External Interface  
72  */
73
74 extern void ReloadResources( void ) ;
75 extern int RestoreState( void ) ;
76 extern int SetCompatState( void ) ;
77 extern int StartWM( void ) ;
78 extern int RestoreResources(Boolean, ...) ;
79 extern int RestorePreferences(char *) ;
80 extern void RestoreIndependentResources(void) ;
81 extern void StartEtc( Boolean ) ;
82 extern void CreateExecString(char *) ;
83 extern void KillParent( void ) ;
84 extern void ScanWhitespace( unsigned char **) ;
85 extern void SystemCmd (char *pchCmd);
86
87 extern Boolean StartClient (
88         char                    * program, 
89         char                    ** argv, 
90         char                    * hostname,
91         char                    * cwd,
92         char                    ** envp, 
93         Boolean                 checkCwd,
94         Boolean                 useIgnoreEnvResource,
95         int                     screen);
96
97 extern Boolean StartXSMPSession (
98         char                    * databaseName);
99
100 extern Boolean StartXSMPClient (
101         XSMPClientDBRecPtr      pDbRec,
102         char                    * databaseName);
103
104 extern Boolean StartProxyClient (
105         ProxyClientDBRecPtr     pDbRec);
106
107 void ExecuteDiscardCommands (
108         char                    * db);
109
110 extern Boolean ExecuteCommandProperty (
111         char                    * propertyName,
112         ClientRecPtr            pClientRec);
113
114 PropertyRecPtr GetPropertyRec (
115         ClientRecPtr            pClientRec,
116         char                    * propName);
117
118 char * GetStringPropertyValue (
119         ClientRecPtr            pClientRec,
120         char                    * propName);
121
122
123 #endif /*_smrestore_h*/