2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
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)
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
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
26 /* $XConsortium: SmDB.h /main/3 1996/02/02 16:03:03 rswiston $ */
28 * (c) Copyright 1996 Digital Equipment Corporation.
29 * (c) Copyright 1996 Hewlett-Packard Company.
30 * (c) Copyright 1996 International Business Machines Corp.
31 * (c) Copyright 1996 Sun Microsystems, Inc.
32 * (c) Copyright 1996 Novell, Inc.
33 * (c) Copyright 1996 FUJITSU LIMITED.
34 * (c) Copyright 1996 Hitachi.
38 #include <X11/Intrinsic.h>
40 typedef void *ClientDB;
42 /* Public variables */
43 extern char *versionStr;
44 extern char *dtsessionIDStr;
46 /********* Open the client database *********/
48 * Open client database for reading.
50 extern ClientDB OpenInputClientDB(char *fileName,
54 * Open client database for writing.
56 extern ClientDB OpenOutputClientDB(char *fileName,
61 /********* Retrieve client record from database *********/
63 * Retrieve the next XSMP client record from the database.
65 extern XSMPClientDBRecPtr GetXSMPClientDBRec(ClientDB inputDB);
67 * Retrieve the next Proxy client record from the database.
69 extern ProxyClientDBRecPtr GetProxyClientDBRec(ClientDB inputDB);
72 /********* Save client record to database *********/
74 * Save XSMP client record to database.
76 extern Boolean PutXSMPClientDBRec(ClientDB outputDB,
77 XSMPClientDBRecPtr clientPtr);
79 * Save Proxy client record to database.
81 extern Boolean PutProxyClientDBRec(ClientDB outputDB,
82 ProxyClientDBRecPtr clientPtr);
85 /********* Close client database *********/
86 extern Boolean CloseClientDB(ClientDB clientDB, Boolean writeDB);
89 /********* Free memory allocated for client records. *********/
90 extern void FreeXSMPClientDBRec(XSMPClientDBRecPtr);
91 extern void FreeProxyClientDBRec(ProxyClientDBRecPtr);