SmDB.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. #ifndef SM_DB_H
  24. #define SM_DB_H
  25. /* $XConsortium: SmDB.h /main/3 1996/02/02 16:03:03 rswiston $ */
  26. /*
  27. * (c) Copyright 1996 Digital Equipment Corporation.
  28. * (c) Copyright 1996 Hewlett-Packard Company.
  29. * (c) Copyright 1996 International Business Machines Corp.
  30. * (c) Copyright 1996 Sun Microsystems, Inc.
  31. * (c) Copyright 1996 Novell, Inc.
  32. * (c) Copyright 1996 FUJITSU LIMITED.
  33. * (c) Copyright 1996 Hitachi.
  34. */
  35. #include "SmXSMP.h"
  36. #include <X11/Intrinsic.h>
  37. typedef void *ClientDB;
  38. /* Public variables */
  39. extern char *versionStr;
  40. extern char *dtsessionIDStr;
  41. /********* Open the client database *********/
  42. /*
  43. * Open client database for reading.
  44. */
  45. extern ClientDB OpenInputClientDB(char *fileName,
  46. char **version,
  47. char **dtsessionID);
  48. /*
  49. * Open client database for writing.
  50. */
  51. extern ClientDB OpenOutputClientDB(char *fileName,
  52. char *version,
  53. char *dtsessionID);
  54. /********* Retrieve client record from database *********/
  55. /*
  56. * Retrieve the next XSMP client record from the database.
  57. */
  58. extern XSMPClientDBRecPtr GetXSMPClientDBRec(ClientDB inputDB);
  59. /*
  60. * Retrieve the next Proxy client record from the database.
  61. */
  62. extern ProxyClientDBRecPtr GetProxyClientDBRec(ClientDB inputDB);
  63. /********* Save client record to database *********/
  64. /*
  65. * Save XSMP client record to database.
  66. */
  67. extern Boolean PutXSMPClientDBRec(ClientDB outputDB,
  68. XSMPClientDBRecPtr clientPtr);
  69. /*
  70. * Save Proxy client record to database.
  71. */
  72. extern Boolean PutProxyClientDBRec(ClientDB outputDB,
  73. ProxyClientDBRecPtr clientPtr);
  74. /********* Close client database *********/
  75. extern Boolean CloseClientDB(ClientDB clientDB, Boolean writeDB);
  76. /********* Free memory allocated for client records. *********/
  77. extern void FreeXSMPClientDBRec(XSMPClientDBRecPtr);
  78. extern void FreeProxyClientDBRec(ProxyClientDBRecPtr);
  79. #endif /* SM_DB_H */