123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- /*
- * 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
- */
- #ifndef SM_DB_H
- #define SM_DB_H
- /* $XConsortium: SmDB.h /main/3 1996/02/02 16:03:03 rswiston $ */
- /*
- * (c) Copyright 1996 Digital Equipment Corporation.
- * (c) Copyright 1996 Hewlett-Packard Company.
- * (c) Copyright 1996 International Business Machines Corp.
- * (c) Copyright 1996 Sun Microsystems, Inc.
- * (c) Copyright 1996 Novell, Inc.
- * (c) Copyright 1996 FUJITSU LIMITED.
- * (c) Copyright 1996 Hitachi.
- */
- #include "SmXSMP.h"
- #include <X11/Intrinsic.h>
- typedef void *ClientDB;
- /* Public variables */
- extern char *versionStr;
- extern char *dtsessionIDStr;
- /********* Open the client database *********/
- /*
- * Open client database for reading.
- */
- extern ClientDB OpenInputClientDB(char *fileName,
- char **version,
- char **dtsessionID);
- /*
- * Open client database for writing.
- */
- extern ClientDB OpenOutputClientDB(char *fileName,
- char *version,
- char *dtsessionID);
- /********* Retrieve client record from database *********/
- /*
- * Retrieve the next XSMP client record from the database.
- */
- extern XSMPClientDBRecPtr GetXSMPClientDBRec(ClientDB inputDB);
- /*
- * Retrieve the next Proxy client record from the database.
- */
- extern ProxyClientDBRecPtr GetProxyClientDBRec(ClientDB inputDB);
- /********* Save client record to database *********/
- /*
- * Save XSMP client record to database.
- */
- extern Boolean PutXSMPClientDBRec(ClientDB outputDB,
- XSMPClientDBRecPtr clientPtr);
- /*
- * Save Proxy client record to database.
- */
- extern Boolean PutProxyClientDBRec(ClientDB outputDB,
- ProxyClientDBRecPtr clientPtr);
- /********* Close client database *********/
- extern Boolean CloseClientDB(ClientDB clientDB, Boolean writeDB);
- /********* Free memory allocated for client records. *********/
- extern void FreeXSMPClientDBRec(XSMPClientDBRecPtr);
- extern void FreeProxyClientDBRec(ProxyClientDBRecPtr);
- #endif /* SM_DB_H */
|