arg_add.sgm 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <!-- $XConsortium: arg_add.sgm /main/6 1996/08/30 14:07:37 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.MAN184.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN184.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_arg_add</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_arg_add</Function></RefName>
  17. <RefPurpose>add an argument to a pattern
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: arg_add.sgm /main/6 1996/08/30 14:07:37 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_arg_add</Function></FuncDef>
  31. <ParamDef>Tt_pattern <Parameter>p</Parameter></ParamDef>
  32. <ParamDef>Tt_mode <Parameter>n</Parameter></ParamDef>
  33. <ParamDef>const char *<Parameter>vtype</Parameter></ParamDef>
  34. <ParamDef>const char *<Parameter>value</Parameter></ParamDef>
  35. </FuncSynopsis>
  36. </RefSynopsisDiv>
  37. <RefSect1>
  38. <Title>DESCRIPTION</Title>
  39. <Para>The
  40. <Function>tt_pattern_arg_add</Function> function
  41. adds an argument to a pattern.
  42. The application must
  43. add pattern arguments before it registers
  44. the pattern with the ToolTalk service.
  45. </Para>
  46. <Para>The
  47. <Emphasis>p</Emphasis> argument is the opaque handle for the pattern involved in this operation
  48. The
  49. <Symbol Role="Variable">n</Symbol> argument specifies who
  50. (sender, handler, observers) writes and reads a message argument.
  51. The following modes are defined:
  52. </Para>
  53. <VariableList>
  54. <VarListEntry>
  55. <Term>TT_IN</Term>
  56. <ListItem>
  57. <Para>The argument is written by the sender and read by the
  58. handler and any observers.
  59. </Para>
  60. </ListItem>
  61. </VarListEntry>
  62. <VarListEntry>
  63. <Term>TT_OUT</Term>
  64. <ListItem>
  65. <Para>The argument is written by the handler and read by the
  66. sender and any reply observers.
  67. </Para>
  68. </ListItem>
  69. </VarListEntry>
  70. <VarListEntry>
  71. <Term>TT_INOUT</Term>
  72. <ListItem>
  73. <Para>The argument is written by the sender and the
  74. handler and read by all.
  75. </Para>
  76. </ListItem>
  77. </VarListEntry>
  78. </VariableList>
  79. <Para>The
  80. <Emphasis>vtype</Emphasis> argument describes the type of argument data being added.
  81. The type
  82. <SystemItem Class="Constant">ALL</SystemItem> matches any argument value type.
  83. The
  84. <Symbol Role="Variable">value</Symbol> argument is the value to fill in.
  85. This value must be an unsigned character string.
  86. A
  87. <SystemItem Class="Constant">NULL</SystemItem> matches any value.
  88. </Para>
  89. </RefSect1>
  90. <RefSect1>
  91. <Title>RETURN VALUE</Title>
  92. <Para>Upon successful completion, the
  93. <Function>tt_pattern_arg_add</Function> function returns the status of the operation as one of the following
  94. <StructName Role="typedef">Tt_status</StructName> values:
  95. </Para>
  96. <VariableList>
  97. <VarListEntry>
  98. <Term>TT_OK</Term>
  99. <ListItem>
  100. <Para>The operation completed successfully.
  101. </Para>
  102. </ListItem>
  103. </VarListEntry>
  104. <VarListEntry>
  105. <Term>TT_ERR_NOMP</Term>
  106. <ListItem>
  107. <Para>The
  108. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  109. </Para>
  110. </ListItem>
  111. </VarListEntry>
  112. <VarListEntry>
  113. <Term>TT_ERR_POINTER</Term>
  114. <ListItem>
  115. <Para>The pointer passed does not point to an object of
  116. the correct type for this operation.
  117. </Para>
  118. </ListItem>
  119. </VarListEntry>
  120. </VariableList>
  121. </RefSect1>
  122. <RefSect1>
  123. <Title>SEE ALSO</Title>
  124. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.pattern.register;, &cdeman.tt.pattern.barg.add;, &cdeman.tt.pattern.iarg.add;.</Para>
  125. </RefSect1>
  126. </RefEntry>
  127. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->