user_set.sgm 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <!-- $XConsortium: user_set.sgm /main/5 1996/08/30 14:23:02 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.MAN211.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN211.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_pattern_user_set</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_pattern_user_set</Function></RefName>
  17. <RefPurpose>store information in the user data cells of a pattern object
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: user_set.sgm /main/5 1996/08/30 14:23:02 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_user_set</Function></FuncDef>
  31. <ParamDef>Tt_pattern <Parameter>p</Parameter></ParamDef>
  32. <ParamDef>int <Parameter>key</Parameter></ParamDef>
  33. <ParamDef>void *<Parameter>v</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para>The
  39. <Function>tt_pattern_user_set</Function> function
  40. stores information in the user data cells
  41. associated with the specified pattern object.
  42. </Para>
  43. <Para>The
  44. <Emphasis>p</Emphasis> argument is a unique handle for a message pattern.
  45. This handle is returned after
  46. &cdeman.tt.pattern.create; is called.
  47. The
  48. <Symbol Role="Variable">key</Symbol> argument is the specified user data cell.
  49. The value for each data cell must be unique for
  50. this pattern.
  51. The
  52. <Emphasis>v</Emphasis> argument is the data cell,
  53. a piece of arbitrary user data that can hold a
  54. <Literal>void&ensp;*</Literal>.</Para>
  55. </RefSect1>
  56. <RefSect1>
  57. <Title>RETURN VALUE</Title>
  58. <Para>Upon successful completion, the
  59. <Function>tt_pattern_user_set</Function> function returns the status of the operation as one of the following
  60. <StructName Role="typedef">Tt_status</StructName> values:
  61. </Para>
  62. <VariableList>
  63. <VarListEntry>
  64. <Term>TT_OK</Term>
  65. <ListItem>
  66. <Para>The operation completed successfully.
  67. </Para>
  68. </ListItem>
  69. </VarListEntry>
  70. <VarListEntry>
  71. <Term>TT_ERR_NOMP</Term>
  72. <ListItem>
  73. <Para>The
  74. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  75. </Para>
  76. </ListItem>
  77. </VarListEntry>
  78. <VarListEntry>
  79. <Term>TT_ERR_POINTER</Term>
  80. <ListItem>
  81. <Para>The pointer passed does not point to an object of
  82. the correct type for this operation.
  83. </Para>
  84. </ListItem>
  85. </VarListEntry>
  86. </VariableList>
  87. </RefSect1>
  88. <RefSect1>
  89. <Title>SEE ALSO</Title>
  90. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.pattern.user;, &cdeman.tt.pattern.create;.</Para>
  91. </RefSect1>
  92. </RefEntry>
  93. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->