DtGetMessageP.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. /* $TOG: DtGetMessageP.h /main/5 1998/07/30 12:14:37 mgreess $
  24. *
  25. * (c) Copyright 1995 Digital Equipment Corporation.
  26. * (c) Copyright 1995 Hewlett-Packard Company.
  27. * (c) Copyright 1995 International Business Machines Corp.
  28. * (c) Copyright 1995 Sun Microsystems, Inc.
  29. * (c) Copyright 1995 Novell, Inc.
  30. * (c) Copyright 1995 FUJITSU LIMITED.
  31. * (c) Copyright 1995 Hitachi.
  32. *
  33. * DtGetMessage.h - Interfaces for the DtSvc library's private message
  34. * catalog APIs
  35. */
  36. #ifndef _DtGetMessage_h
  37. #define _DtGetMessage_h
  38. #ifdef __cplusplus
  39. extern "C" {
  40. #endif
  41. /*
  42. * External declarations
  43. */
  44. extern char *Dt11GetMessage (
  45. char *filename,
  46. int set,
  47. int number,
  48. char *string);
  49. /*
  50. * Dt11GETMESSAGE macro
  51. */
  52. #ifndef NO_MESSAGE_CATALOG
  53. # define _MESSAGE_CAT_NAME "dt"
  54. # define Dt11GETMESSAGE(set, number, string)\
  55. Dt11GetMessage(_MESSAGE_CAT_NAME, set, number, string)
  56. #else
  57. # define Dt11GETMESSAGE(set, number, string)\
  58. string
  59. #endif
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63. #endif /* _DtGetMessage_h */