stat_add.sgm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <!-- $XConsortium: stat_add.sgm /main/5 1996/08/30 14:20:46 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN208.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN208.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_state_add</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_state_add</Function></RefName>
  17. <RefPurpose>add a value to the state field for a pattern
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: stat_add.sgm /main/5 1996/08/30 14:20:46 rws $-->
  21. <!-- CDE Common Source Format, Version 1.0.0-->
  22. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <RefSynopsisDiv>
  27. <FuncSynopsis Remap="ANSI">
  28. <FuncSynopsisInfo>#include &lt;Tt/tt_c.h>
  29. </FuncSynopsisInfo>
  30. <FuncDef>Tt_status <Function>tt_pattern_state_add</Function></FuncDef>
  31. <ParamDef>Tt_pattern <Parameter>p</Parameter></ParamDef>
  32. <ParamDef>Tt_state <Parameter>s</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>tt_pattern_state_add</Function> function
  39. adds a value to the state field for the specified pattern.
  40. </Para>
  41. <Para>The
  42. <Emphasis>p</Emphasis> argument is a unique handle for a message pattern.
  43. This handle is returned after
  44. &cdeman.tt.pattern.create; is called.
  45. The
  46. <Symbol Role="Variable">s</Symbol> argument indicates the current delivery state of a message.
  47. The following values are defined:
  48. </Para>
  49. <VariableList>
  50. <VarListEntry>
  51. <Term>TT_CREATED</Term>
  52. <ListItem>
  53. <Para>The message has been created, but not yet sent.
  54. </Para>
  55. </ListItem>
  56. </VarListEntry>
  57. <VarListEntry>
  58. <Term>TT_SENT</Term>
  59. <ListItem>
  60. <Para>The message has been sent, but not yet handled.
  61. </Para>
  62. </ListItem>
  63. </VarListEntry>
  64. <VarListEntry>
  65. <Term>TT_HANDLED</Term>
  66. <ListItem>
  67. <Para>The message has been handled; return values are valid.
  68. </Para>
  69. </ListItem>
  70. </VarListEntry>
  71. <VarListEntry>
  72. <Term>TT_FAILED</Term>
  73. <ListItem>
  74. <Para>The message could not be delivered to a handler.
  75. </Para>
  76. </ListItem>
  77. </VarListEntry>
  78. <VarListEntry>
  79. <Term>TT_QUEUED</Term>
  80. <ListItem>
  81. <Para>The message has been queued for delivery.
  82. </Para>
  83. </ListItem>
  84. </VarListEntry>
  85. <VarListEntry>
  86. <Term>TT_STARTED</Term>
  87. <ListItem>
  88. <Para>The ToolTalk service is attempting to start a process to handle the message.
  89. </Para>
  90. </ListItem>
  91. </VarListEntry>
  92. <VarListEntry>
  93. <Term>TT_REJECTED</Term>
  94. <ListItem>
  95. <Para>The message has been rejected by a possible handler.
  96. </Para>
  97. </ListItem>
  98. </VarListEntry>
  99. </VariableList>
  100. </RefSect1>
  101. <RefSect1>
  102. <Title>RETURN VALUE</Title>
  103. <Para>Upon successful completion, the
  104. <Function>tt_pattern_state_add</Function> function returns the status of the operation as one of the following
  105. <StructName Role="typedef">Tt_status</StructName> values:
  106. </Para>
  107. <VariableList>
  108. <VarListEntry>
  109. <Term>TT_OK</Term>
  110. <ListItem>
  111. <Para>The operation completed successfully.
  112. </Para>
  113. </ListItem>
  114. </VarListEntry>
  115. <VarListEntry>
  116. <Term>TT_ERR_NOMP</Term>
  117. <ListItem>
  118. <Para>The
  119. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  120. </Para>
  121. </ListItem>
  122. </VarListEntry>
  123. <VarListEntry>
  124. <Term>TT_ERR_POINTER</Term>
  125. <ListItem>
  126. <Para>The pointer passed does not point to an object of
  127. the correct type for this operation.
  128. </Para>
  129. </ListItem>
  130. </VarListEntry>
  131. </VariableList>
  132. </RefSect1>
  133. <RefSect1>
  134. <Title>SEE ALSO</Title>
  135. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.pattern.create;.</Para>
  136. </RefSect1>
  137. </RefEntry>
  138. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->