xarg_add.sgm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <!-- $XConsortium: xarg_add.sgm /main/7 1996/08/30 14:23:39 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.MAN212.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN212.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_xarg_add</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_xarg_add</Function></RefName>
  17. <RefPurpose>add a new argument with an interpreted XDR value to a pattern object
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <RefSynopsisDiv>
  21. <FuncSynopsis Remap="ANSI">
  22. <FuncSynopsisInfo>#include &lt;Tt/tt_c.h>
  23. </FuncSynopsisInfo>
  24. <FuncDef>Tt_status <Function>tt_pattern_xarg_add</Function></FuncDef>
  25. <ParamDef>Tt_pattern <Parameter>m</Parameter></ParamDef>
  26. <ParamDef>Tt_mode <Parameter>n</Parameter></ParamDef>
  27. <ParamDef>const char *<Parameter>vtype</Parameter></ParamDef>
  28. <ParamDef>xdrproc_t <Parameter>xdr_proc</Parameter></ParamDef>
  29. <ParamDef>void *<Parameter>value</Parameter></ParamDef>
  30. </FuncSynopsis>
  31. </RefSynopsisDiv>
  32. <RefSect1>
  33. <Title>DESCRIPTION</Title>
  34. <Para>The
  35. <Function>tt_pattern_xarg_add</Function> function
  36. adds a new argument with an interpreted XDR value to a pattern object.
  37. </Para>
  38. <Para>The
  39. <Emphasis>m</Emphasis> argument is the opaque handle for the pattern involved in this operation.
  40. The
  41. <Symbol Role="Variable">n</Symbol> argument specifies who (sender, handler, observers) writes and reads a pattern
  42. argument.
  43. The following modes are defined:
  44. </Para>
  45. <VariableList>
  46. <VarListEntry>
  47. <Term>TT_IN</Term>
  48. <ListItem>
  49. <Para>The argument is written by the sender and read by the
  50. handler and any observers.
  51. </Para>
  52. </ListItem>
  53. </VarListEntry>
  54. <VarListEntry>
  55. <Term>TT_OUT</Term>
  56. <ListItem>
  57. <Para>The argument is written by the handler and read by the
  58. sender and any reply observers.
  59. </Para>
  60. </ListItem>
  61. </VarListEntry>
  62. <VarListEntry>
  63. <Term>TT_INOUT</Term>
  64. <ListItem>
  65. <Para>The argument is written by the sender and the
  66. handler and read by all.
  67. </Para>
  68. </ListItem>
  69. </VarListEntry>
  70. </VariableList>
  71. <Para>The
  72. <Emphasis>vtype</Emphasis> argument describes the type of argument data being added.
  73. The
  74. <Emphasis>xdr_proc</Emphasis> argument points to the XDR procedure to be used to serialize the data
  75. pointed to by
  76. <Symbol Role="Variable">value</Symbol>. The
  77. <Symbol Role="Variable">value</Symbol> argument is the data to be serialized.
  78. </Para>
  79. </RefSect1>
  80. <RefSect1>
  81. <Title>RETURN VALUE</Title>
  82. <Para>Upon successful completion, the
  83. <Function>tt_pattern_xarg_add</Function> function returns the status of the operation as one of the following
  84. <StructName Role="typedef">Tt_status</StructName> values:
  85. </Para>
  86. <VariableList>
  87. <VarListEntry>
  88. <Term>TT_OK</Term>
  89. <ListItem>
  90. <Para>The operation completed successfully.
  91. </Para>
  92. </ListItem>
  93. </VarListEntry>
  94. <VarListEntry>
  95. <Term>TT_ERR_MODE</Term>
  96. <ListItem>
  97. <Para>The specified
  98. <StructName Role="typedef">Tt_mode</StructName> is invalid.
  99. </Para>
  100. </ListItem>
  101. </VarListEntry>
  102. <VarListEntry>
  103. <Term>TT_ERR_NOMP</Term>
  104. <ListItem>
  105. <Para>The
  106. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  107. </Para>
  108. </ListItem>
  109. </VarListEntry>
  110. <VarListEntry>
  111. <Term>TT_ERR_POINTER</Term>
  112. <ListItem>
  113. <Para>The pointer passed does not point to an object of
  114. the correct type for this operation.
  115. </Para>
  116. </ListItem>
  117. </VarListEntry>
  118. <VarListEntry>
  119. <Term>TT_ERR_XDR</Term>
  120. <ListItem>
  121. <Para>The XDR procedure failed on the given data, or evaluated to a
  122. zero-length expression.
  123. </Para>
  124. </ListItem>
  125. </VarListEntry>
  126. </VariableList>
  127. </RefSect1>
  128. <RefSect1>
  129. <Title>SEE ALSO</Title>
  130. <Para>&cdeman.Tt.tt.c.h;
  131. </Para>
  132. </RefSect1>
  133. </RefEntry>
  134. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->