MsgCatP.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /*
  24. * (c) Copyright 1995 Digital Equipment Corporation.
  25. * (c) Copyright 1995 Hewlett-Packard Company.
  26. * (c) Copyright 1995 International Business Machines Corp.
  27. * (c) Copyright 1995 Sun Microsystems, Inc.
  28. * (c) Copyright 1995 Novell, Inc.
  29. * (c) Copyright 1995 FUJITSU LIMITED.
  30. * (c) Copyright 1995 Hitachi.
  31. *
  32. * MsgCat.h - Public interfaces for the Cached Message Catalog Service
  33. *
  34. * $TOG: MsgCatP.h /main/1 1998/04/22 14:19:24 mgreess $
  35. *
  36. */
  37. #ifndef _Dt_MsgCat_h
  38. #define _Dt_MsgCat_h
  39. #include <nl_types.h>
  40. #ifdef __cplusplus
  41. extern "C" {
  42. #endif
  43. #define CATOPEN(name,oflag) catopen(name,oflag)
  44. #define CATCLOSE(catd) _DtCatclose(catd)
  45. #define CATGETS(catd,set,num,dflt) _DtCatgets(catd,set,num,dflt)
  46. extern char *_DtCatgets(nl_catd catd, int set, int num, const char *dflt);
  47. extern int _DtCatclose(nl_catd catd);
  48. #if 0 /* TODO: Decide between !I18N_MSG and NO_MESSAGE_CATALOG */
  49. typedef int nl_catd;
  50. #define CATOPEN(name,oflag) 0
  51. #define CATCLOSE(catd) 0
  52. #define CATGETS(catd,set,num,dflt) dflt
  53. #endif
  54. #ifdef __cplusplus
  55. }
  56. #endif
  57. #endif /* _Dt_MsgCat_h */