2
0

mp_ce_attrs.C 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. //%% (c) Copyright 1993, 1994 Hewlett-Packard Company
  24. //%% (c) Copyright 1993, 1994 International Business Machines Corp.
  25. //%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  26. //%% (c) Copyright 1993, 1994 Novell, Inc.
  27. //%% $XConsortium: mp_ce_attrs.C /main/3 1995/10/23 11:49:31 rswiston $
  28. /* @(#)mp_ce_attrs.C 1.3 @(#)
  29. *
  30. * mp_ce_attrs.cc
  31. *
  32. * Copyright (c) 1990 by Sun Microsystems, Inc.
  33. */
  34. #include "mp_ce_attrs.h"
  35. //
  36. // Given an the _Tt_ce_attr enum value x, this method should return the
  37. // string that corresponds to it in a Classing Engine database. Changing
  38. // the strings returned by this method should be done with care as it may
  39. // disable binary compatibility with older Classing Engine databases.
  40. //
  41. const char *
  42. _tt_ce_attr_string(_Tt_ce_attr x)
  43. {
  44. switch (x) {
  45. case _TYPE_NAME:
  46. return "TYPE_NAME";
  47. case _TT_OP:
  48. return "TT_OP";
  49. case _TT_ARG:
  50. return "TT_ARG";
  51. case _TT_SCOPE:
  52. return "TT_SCOPE";
  53. case _TT_MSET_SCOPE:
  54. return "TT_MSET_SCOPE";
  55. case _TT_DISPOSITION:
  56. return "TT_DISPOSITION";
  57. case _TT_MSET_DISPOSITION:
  58. return "TT_MSET_DISPOSITION";
  59. case _TT_MSET_OPNUM:
  60. return "TT_MSET_OPNUM";
  61. case _TT_OPNUM:
  62. return "TT_OPNUM";
  63. case _TT_MSET_HANDLER_PTYPE:
  64. return "TT_MSET_HANDLER_PTYPE";
  65. case _TT_HANDLER_PTYPE:
  66. return "TT_HANDLER_PTYPE";
  67. case _TT_MSET_OTYPE:
  68. return "TT_MSET_OTYPE";
  69. case _TT_OTYPE:
  70. return "TT_OTYPE";
  71. case _TT_PARENT:
  72. return "TT_PARENT";
  73. case _TT_OUT:
  74. return "TT_OUT";
  75. case _TT_IN:
  76. return "TT_IN";
  77. case _TT_INOUT:
  78. return "TT_INOUT";
  79. case _TT_SESSION:
  80. return "TT_SESSION";
  81. case _TT_FILE:
  82. return "TT_FILE";
  83. case _TT_BOTH:
  84. return "TT_BOTH";
  85. case _TT_FILE_IN_SESSION:
  86. return "TT_FILE_IN_SESSION";
  87. case _TT_DISCARD:
  88. return "TT_DISCARD";
  89. case _TT_QUEUE:
  90. return "TT_QUEUE";
  91. case _TT_START:
  92. return "TT_START";
  93. case _TT_CATEGORY:
  94. return "TT_CATEGORY";
  95. case _TT_OBSERVE:
  96. return "TT_OBSERVE";
  97. case _TT_HANDLE:
  98. return "TT_HANDLE";
  99. case _TT_CLASS:
  100. return "TT_CLASS";
  101. case _TT_REQUEST:
  102. return "TT_REQUEST";
  103. case _TT_NOTICE:
  104. return "TT_NOTICE";
  105. case _TT_TOOLTALK_TYPE:
  106. return "SUN_TOOLTALK_TYPE";
  107. case _TT_TOOLTALK_PTYPE:
  108. return "SUN_TOOLTALK_PTYPE";
  109. case _TT_TOOLTALK_OTYPE:
  110. return "SUN_TOOLTALK_OTYPE";
  111. case _TT_TOOLTALK_SIGNATURE:
  112. return "SUN_TOOLTALK_SIGNATURE";
  113. case _TT_CE_ATTR_LAST:
  114. default:
  115. return "! _Tt_ce_attr";
  116. }
  117. }