op_add.sgm 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!-- $XConsortium: op_add.sgm /main/5 1996/08/30 14:16:13 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.MAN199.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN199.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_op_add</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_op_add</Function></RefName>
  17. <RefPurpose>add a value to the operation field of a pattern
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: op_add.sgm /main/5 1996/08/30 14:16:13 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_op_add</Function></FuncDef>
  31. <ParamDef>Tt_pattern <Parameter>p</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>opname</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>tt_pattern_op_add</Function> function
  39. adds a value to the operation field of 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. <Emphasis>opname</Emphasis> argument is the name of the operation the process can perform.
  47. </Para>
  48. </RefSect1>
  49. <RefSect1>
  50. <Title>RETURN VALUE</Title>
  51. <Para>Upon successful completion, the
  52. <Function>tt_pattern_op_add</Function> function returns the status of the operation as one of the following
  53. <StructName Role="typedef">Tt_status</StructName> values:
  54. </Para>
  55. <VariableList>
  56. <VarListEntry>
  57. <Term>TT_OK</Term>
  58. <ListItem>
  59. <Para>The operation completed successfully.
  60. </Para>
  61. </ListItem>
  62. </VarListEntry>
  63. <VarListEntry>
  64. <Term>TT_ERR_NOMP</Term>
  65. <ListItem>
  66. <Para>The
  67. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  68. </Para>
  69. </ListItem>
  70. </VarListEntry>
  71. <VarListEntry>
  72. <Term>TT_ERR_POINTER</Term>
  73. <ListItem>
  74. <Para>The pointer passed does not point to an object of
  75. the correct type for this operation.
  76. </Para>
  77. </ListItem>
  78. </VarListEntry>
  79. </VariableList>
  80. </RefSect1>
  81. <RefSect1>
  82. <Title>SEE ALSO</Title>
  83. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.pattern.create;.</Para>
  84. </RefSect1>
  85. </RefEntry>
  86. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->