addr_add.sgm 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <!-- $XConsortium: addr_add.sgm /main/5 1996/08/30 14:06:48 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.MAN183.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN183.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_address_add</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_address_add</Function></RefName>
  17. <RefPurpose>add a value to the address field for a pattern
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: addr_add.sgm /main/5 1996/08/30 14:06:48 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_address_add</Function></FuncDef>
  31. <ParamDef>Tt_pattern <Parameter>p</Parameter></ParamDef>
  32. <ParamDef>Tt_address <Parameter>d</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>tt_pattern_address_add</Function> function
  39. adds a value to the address 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 a
  44. &cdeman.tt.pattern.create; call has been made.
  45. </Para>
  46. <Para>The
  47. <Symbol Role="Variable">d</Symbol> argument specifies which pattern attributes form the
  48. address that messages will be matched against.
  49. The following values are defined:
  50. </Para>
  51. <VariableList>
  52. <VarListEntry>
  53. <Term>TT_HANDLER</Term>
  54. <ListItem>
  55. <Para>The message is addressed to a specific handler
  56. that can perform this operation with these arguments.
  57. </Para>
  58. </ListItem>
  59. </VarListEntry>
  60. <VarListEntry>
  61. <Term>TT_OBJECT</Term>
  62. <ListItem>
  63. <Para>The message is addressed to a specific object
  64. that can perform this operation with these arguments.
  65. </Para>
  66. </ListItem>
  67. </VarListEntry>
  68. <VarListEntry>
  69. <Term>TT_OTYPE</Term>
  70. <ListItem>
  71. <Para>The message is addressed to the type of object
  72. that can perform this operation with these arguments.
  73. </Para>
  74. </ListItem>
  75. </VarListEntry>
  76. <VarListEntry>
  77. <Term>TT_PROCEDURE</Term>
  78. <ListItem>
  79. <Para>The message is addressed to any process
  80. that can perform this operation with these arguments.
  81. </Para>
  82. </ListItem>
  83. </VarListEntry>
  84. </VariableList>
  85. </RefSect1>
  86. <RefSect1>
  87. <Title>RETURN VALUE</Title>
  88. <Para>Upon successful completion, the
  89. <Function>tt_pattern_address_add</Function> function returns the status of the operation as one of the following
  90. <StructName Role="typedef">Tt_status</StructName> values:
  91. </Para>
  92. <VariableList>
  93. <VarListEntry>
  94. <Term>TT_OK</Term>
  95. <ListItem>
  96. <Para>The operation completed successfully.
  97. </Para>
  98. </ListItem>
  99. </VarListEntry>
  100. <VarListEntry>
  101. <Term>TT_ERR_NOMP</Term>
  102. <ListItem>
  103. <Para>The
  104. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  105. </Para>
  106. </ListItem>
  107. </VarListEntry>
  108. <VarListEntry>
  109. <Term>TT_ERR_POINTER</Term>
  110. <ListItem>
  111. <Para>The pointer passed does not point to an object of
  112. the correct type for this operation.
  113. </Para>
  114. </ListItem>
  115. </VarListEntry>
  116. </VariableList>
  117. </RefSect1>
  118. <RefSect1>
  119. <Title>SEE ALSO</Title>
  120. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.pattern.create;.</Para>
  121. </RefSect1>
  122. </RefEntry>
  123. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->