prop_set.sgm 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!-- $XConsortium: prop_set.sgm /main/5 1996/08/30 15:24:08 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.MAN245.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN245.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_spec_prop_set</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_spec_prop_set</Function></RefName>
  17. <RefPurpose>replace property values
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: prop_set.sgm /main/5 1996/08/30 15:24:08 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_spec_prop_set</Function></FuncDef>
  31. <ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>propname</Parameter></ParamDef>
  33. <ParamDef>const char *<Parameter>value</Parameter></ParamDef>
  34. </FuncSynopsis>
  35. </RefSynopsisDiv>
  36. <RefSect1>
  37. <Title>DESCRIPTION</Title>
  38. <Para>The
  39. <Function>tt_spec_prop_set</Function> function
  40. replaces any values currently stored under this property of the object spec
  41. with a new value.
  42. </Para>
  43. <Para>The
  44. <Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
  45. The
  46. <Emphasis>propname</Emphasis> argument is the name of the property which stores the values.
  47. The
  48. <Symbol Role="Variable">value</Symbol> argument is the value to be placed in the property value list.
  49. If value is
  50. <SystemItem Class="Constant">NULL</SystemItem>, the
  51. property is removed entirely.
  52. </Para>
  53. </RefSect1>
  54. <RefSect1>
  55. <Title>RETURN VALUE</Title>
  56. <Para>Upon successful completion, the
  57. <Function>tt_spec_prop_set</Function> function returns the status of the operation as one of the following
  58. <StructName Role="typedef">Tt_status</StructName> values:
  59. </Para>
  60. <VariableList>
  61. <VarListEntry>
  62. <Term>TT_OK</Term>
  63. <ListItem>
  64. <Para>The operation completed successfully.
  65. </Para>
  66. </ListItem>
  67. </VarListEntry>
  68. <VarListEntry>
  69. <Term>TT_ERR_DBAVAIL</Term>
  70. <ListItem>
  71. <Para>The ToolTalk service could not access the
  72. ToolTalk database needed for this operation.
  73. </Para>
  74. </ListItem>
  75. </VarListEntry>
  76. <VarListEntry>
  77. <Term>TT_ERR_DBEXIST</Term>
  78. <ListItem>
  79. <Para>The ToolTalk service could not access the
  80. specified ToolTalk database in the expected place.
  81. </Para>
  82. </ListItem>
  83. </VarListEntry>
  84. <VarListEntry>
  85. <Term>TT_ERR_NOMP</Term>
  86. <ListItem>
  87. <Para>The
  88. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  89. </Para>
  90. </ListItem>
  91. </VarListEntry>
  92. <VarListEntry>
  93. <Term>TT_ERR_OBJID</Term>
  94. <ListItem>
  95. <Para>The
  96. <Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
  97. </Para>
  98. </ListItem>
  99. </VarListEntry>
  100. <VarListEntry>
  101. <Term>TT_ERR_PROPLEN</Term>
  102. <ListItem>
  103. <Para>The specified property value is too long.
  104. (The maximum size is implementation specific, but is at least 2048.)
  105. </Para>
  106. </ListItem>
  107. </VarListEntry>
  108. <VarListEntry>
  109. <Term>TT_ERR_PROPNAME</Term>
  110. <ListItem>
  111. <Para>The specified property name is syntactically invalid.
  112. </Para>
  113. </ListItem>
  114. </VarListEntry>
  115. </VariableList>
  116. </RefSect1>
  117. <RefSect1>
  118. <Title>SEE ALSO</Title>
  119. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.spec.prop.add;.</Para>
  120. </RefSect1>
  121. </RefEntry>
  122. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->