cdesktopenv/cde/programs/dtsession/SmRestore.h

124 lines
3.3 KiB
C

/*
* CDE - Common Desktop Environment
*
* Copyright (c) 1993-2012, The Open Group. All rights reserved.
*
* These libraries and programs are free software; you can
* redistribute them and/or modify them under the terms of the GNU
* Lesser General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* These libraries and programs are distributed in the hope that
* they will be useful, but WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with these libraries and programs; if not, write
* to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
* Floor, Boston, MA 02110-1301 USA
*/
/* $XConsortium: SmRestore.h /main/10 1996/02/08 11:29:05 barstow $ */
/* *
* (c) Copyright 1993, 1994 Hewlett-Packard Company *
* (c) Copyright 1993, 1994 International Business Machines Corp. *
* (c) Copyright 1993, 1994 Sun Microsystems, Inc. *
* (c) Copyright 1993, 1994 Novell, Inc. *
*/
/************************************<+>*************************************
****************************************************************************
**
** File: SmRestore.h
**
** Project: HP DT
**
** Description
** -----------
** Variables and declarations needed for
** Session Restoration for the session manager
**
**
** (c) Copyright Hewlett-Packard Company, 1990.
**
**
**
****************************************************************************
************************************<+>*************************************/
#ifndef _smrestore_h
#define _smrestore_h
/*
* #include statements
*/
#include "SmXSMP.h"
/*
* #define statements
*/
#define MAX_REMOTE_CLIENTS 200
/*
* typedef statements
*/
/*
* External variables
*/
/*
* External Interface
*/
extern void ReloadResources( void ) ;
extern int RestoreState( void ) ;
extern int SetCompatState( void ) ;
extern int StartWM( void ) ;
extern int RestoreResources(Boolean, ...) ;
extern int RestorePreferences(char *) ;
extern void RestoreIndependentResources(void) ;
extern void StartEtc( Boolean ) ;
extern void CreateExecString(char *) ;
extern void KillParent( void ) ;
extern void ScanWhitespace( unsigned char **) ;
extern void SystemCmd (char *pchCmd);
extern Boolean StartClient (
char * program,
char ** argv,
char * hostname,
char * cwd,
char ** envp,
Boolean checkCwd,
Boolean useIgnoreEnvResource,
int screen);
extern Boolean StartXSMPSession (
char * databaseName);
extern Boolean StartXSMPClient (
XSMPClientDBRecPtr pDbRec,
char * databaseName);
extern Boolean StartProxyClient (
ProxyClientDBRecPtr pDbRec);
void ExecuteDiscardCommands (
char * db);
extern Boolean ExecuteCommandProperty (
char * propertyName,
ClientRecPtr pClientRec);
PropertyRecPtr GetPropertyRec (
ClientRecPtr pClientRec,
char * propName);
char * GetStringPropertyValue (
ClientRecPtr pClientRec,
char * propName);
#endif /*_smrestore_h*/