barg_add.sgm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <!-- $XConsortium: barg_add.sgm /main/8 1996/08/31 15:01:00 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.MAN185.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN185.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_barg_add</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_barg_add</Function></RefName>
  17. <RefPurpose>add an argument with a value that contains embedded nulls to a pattern
  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_barg_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>const unsigned char *<Parameter>value</Parameter></ParamDef>
  29. <ParamDef>int <Parameter>len</Parameter></ParamDef>
  30. </FuncSynopsis>
  31. </RefSynopsisDiv>
  32. <RefSect1>
  33. <Title>DESCRIPTION</Title>
  34. <Para>The
  35. <Function>tt_pattern_barg_add</Function> function
  36. adds an argument with a value that contains embedded nulls to a pattern.
  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
  42. (sender, handler, observers) writes and reads a message 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. Type
  74. <Symbol>ALL</Symbol> matches any argument value type.
  75. </Para>
  76. <Para>The ToolTalk service treats the value as an opaque byte string.
  77. To pass structured data, the application and the receiving application
  78. must encode and decode these unique values.
  79. The most common method to use is XDR.
  80. </Para>
  81. <Para>The
  82. <Symbol Role="Variable">value</Symbol> argument is the value to be added.
  83. <SystemItem Class="Constant">NULL</SystemItem> matches any value.
  84. </Para>
  85. <Para>The
  86. <Emphasis>len</Emphasis> argument is the length of the value in bytes.
  87. </Para>
  88. </RefSect1>
  89. <RefSect1>
  90. <Title>RETURN VALUE</Title>
  91. <Para>Upon successful completion, the
  92. <Function>tt_pattern_barg_add</Function> function returns the status of the operation as one of the following
  93. <StructName Role="typedef">Tt_status</StructName> values:
  94. </Para>
  95. <VariableList>
  96. <VarListEntry>
  97. <Term>TT_OK</Term>
  98. <ListItem>
  99. <Para>The operation completed successfully.
  100. </Para>
  101. </ListItem>
  102. </VarListEntry>
  103. <VarListEntry>
  104. <Term>TT_ERR_NOMP</Term>
  105. <ListItem>
  106. <Para>The
  107. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  108. </Para>
  109. </ListItem>
  110. </VarListEntry>
  111. <VarListEntry>
  112. <Term>TT_ERR_POINTER</Term>
  113. <ListItem>
  114. <Para>The pointer passed does not point to an object of
  115. the correct type for this operation.
  116. </Para>
  117. </ListItem>
  118. </VarListEntry>
  119. </VariableList>
  120. </RefSect1>
  121. <RefSect1>
  122. <Title>SEE ALSO</Title>
  123. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.pattern.register;, &cdeman.tt.pattern.arg.add;, &cdeman.tt.pattern.iarg.add;
  124. </Para>
  125. </RefSect1>
  126. </RefEntry>
  127. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->