ActionDbP.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. *
  25. * File: ActionDbP.h
  26. * RCS: $XConsortium: ActionDbP.h /main/3 1995/10/26 14:58:53 rswiston $
  27. * Description: Private header file for the action database functions.
  28. * Language: C
  29. * Package: N/A
  30. *
  31. *
  32. ** (c) Copyright 1993, 1994 Hewlett-Packard Company
  33. ** (c) Copyright 1993, 1994 International Business Machines Corp.
  34. ** (c) Copyright 1993, 1994 Sun Microsystems, Inc.
  35. ** (c) Copyright 1993, 1994 Novell, Inc.
  36. *****************************************************************************/
  37. #ifndef _Dt_ActionDbP_h
  38. #define _Dt_ActionDbP_h
  39. #include <Dt/DbReader.h>
  40. #include <Dt/ActionDb.h>
  41. #define _DtMAX_NUM_FIELDS 30
  42. #define _ActDb_MAX_NUM_FIELDS _DtMAX_NUM_FIELDS
  43. /*
  44. * Bitmask field definitions for the action converter bit mask.
  45. * These are NOT the bits for the mask in struct ACTION.
  46. */
  47. #define _ActDb_LABEL_SET (1<<0)
  48. #define _ActDb_TYPE_SET (1<<1)
  49. #define _ActDb_ARG_CLASS_SET (1<<2)
  50. #define _ActDb_ARG_TYPE_SET (1<<3)
  51. #define _ActDb_ARG_COUNT_SET (1<<4)
  52. #define _ActDb_ARG_MODE_SET (1<<5)
  53. #define _ActDb_DESCRIPTION_SET (1<<6)
  54. #define _ActDb_ICON_SET (1<<7)
  55. #define _ActDb_MAP_ACTION_SET (1<<10)
  56. #define _ActDb_EXEC_STRING_SET (1<<12)
  57. #define _ActDb_EXEC_HOST_SET (1<<13)
  58. #define _ActDb_CWD_SET (1<<14)
  59. #define _ActDb_WINDOW_TYPE_SET (1<<15)
  60. #define _ActDb_TERM_OPTS_SET (1<<16)
  61. #define _ActDb_TT_CLASS_SET (1<<18)
  62. #define _ActDb_TT_SCOPE_SET (1<<19)
  63. #define _ActDb_TT_OPERATION_SET (1<<20)
  64. #define _ActDb_TT_FILE_SET (1<<21)
  65. #define _ActDb_TT_ARGN_MODE_SET (1<<22)
  66. #define _ActDb_TT_ARGN_VTYP_SET (1<<23)
  67. #define _ActDb_TT_ARGN_RTYP_SET (1<<24)
  68. #define _ActDb_TT_ARGN_VAL_SET (1<<25)
  69. #ifdef _DT_ALLOW_DT_MSGS
  70. #define _ActDb_DT_REQ_NAME_SET (1<<26)
  71. #define _ActDb_DT_SVC_SET (1<<27)
  72. #define _ActDb_DT_NTFY_NAME_SET (1<<28)
  73. #define _ActDb_DT_NGROUP_SET (1<<29)
  74. #define _ActDb_DT_ARGN_VAL_SET (1<<30)
  75. /* no mask for ARGn strings */
  76. #define _ActDb_DT_REQUEST_BITS ( _ActDb_DT_REQ_NAME_SET \
  77. | _ActDb_DT_SVC_SET )
  78. #define _ActDb_DT_NOTIFY_BITS ( _ActDb_DT_NTFY_NAME_SET \
  79. | _ActDb_DT_NGROUP_SET )
  80. #endif /* _DT_ALLOW_DT_MSGS */
  81. #define _ActDb_TT_BITS ( _ActDb_TT_CLASS_SET \
  82. | _ActDb_TT_SCOPE_SET \
  83. | _ActDb_TT_OPERATION_SET \
  84. | _ActDb_TT_ARGN_MODE_SET \
  85. | _ActDb_TT_ARGN_VTYP_SET \
  86. | _ActDb_TT_ARGN_RTYP_SET \
  87. | _ActDb_TT_ARGN_VAL_SET \
  88. | _ActDb_TT_FILE_SET )
  89. #define _ActDb_CMD_BITS ( _ActDb_EXEC_STRING_SET \
  90. | _ActDb_CWD_SET \
  91. | _ActDb_WINDOW_TYPE_SET \
  92. | _ActDb_TERM_OPTS_SET )
  93. #define _ActDb_MAP_BITS ( _ActDb_MAP_ACTION_SET )
  94. #define _ActDb_TT_ARGN_BITS ( _ActDb_TT_ARGN_MODE_SET \
  95. | _ActDb_TT_ARGN_VTYP_SET \
  96. | _ActDb_TT_ARGN_RTYP_SET \
  97. | _ActDb_TT_ARGN_VAL_SET )
  98. #ifdef _DT_ALLOW_DT_MSGS
  99. #define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS \
  100. | _ActDb_DT_ARGN_VAL_SET )
  101. #else
  102. #define _ActDb_ARGN_BITS ( _ActDb_TT_ARGN_BITS )
  103. #endif /* _DT_ALLOW_DT_MSGS */
  104. /******************************************************************************
  105. *
  106. * Private (but external) entry points for internal use by Action Database
  107. * Library code only.
  108. *
  109. *****************************************************************************/
  110. # ifdef __cplusplus
  111. extern "C" {
  112. # endif
  113. extern Boolean _DtActionConverter( DtDtsDbField *fields,
  114. DtDbPathId pathId,
  115. char *hostPrefix,
  116. Boolean rejectionStatus);
  117. # ifdef __cplusplus
  118. }
  119. # endif
  120. #endif /* _Dt_ActionDbP_h */
  121. /* DON'T ADD ANYTHING AFTER THIS #endif */