bpro_set.sgm 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!-- $XConsortium: bpro_set.sgm /main/5 1996/08/30 15:20:10 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.MAN237.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN237.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_spec_bprop_set</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_spec_bprop_set</Function></RefName>
  17. <RefPurpose>replace any current values stored under this spec property with a new byte-string
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: bpro_set.sgm /main/5 1996/08/30 15:20:10 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_bprop_set</Function></FuncDef>
  31. <ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>propname</Parameter></ParamDef>
  33. <ParamDef>const unsigned char *<Parameter>value</Parameter></ParamDef>
  34. <ParamDef>int <Parameter>length</Parameter></ParamDef>
  35. </FuncSynopsis>
  36. </RefSynopsisDiv>
  37. <RefSect1>
  38. <Title>DESCRIPTION</Title>
  39. <Para>The
  40. <Function>tt_spec_bprop_set</Function> function
  41. replaces any current values stored under this spec property with a new
  42. byte-string.
  43. </Para>
  44. <Para>The
  45. <Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
  46. The
  47. <Emphasis>propname</Emphasis> argument is the name of the property which stores the values.
  48. The
  49. <Symbol Role="Variable">value</Symbol> argument is the byte-string to be added to the property value list.
  50. If the value is
  51. <SystemItem Class="Constant">NULL</SystemItem>, the property is removed entirely.
  52. The
  53. <Symbol Role="Variable">length</Symbol> argument is the length of the value in bytes.
  54. </Para>
  55. </RefSect1>
  56. <RefSect1>
  57. <Title>RETURN VALUE</Title>
  58. <Para>Upon successful completion, the
  59. <Function>tt_spec_bprop_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_OBJID</Term>
  80. <ListItem>
  81. <Para>The
  82. <Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
  83. </Para>
  84. </ListItem>
  85. </VarListEntry>
  86. <VarListEntry>
  87. <Term>TT_ERR_PROPLEN</Term>
  88. <ListItem>
  89. <Para>The specified property value is too long.
  90. (The maximum size is implementation specific, but is at least 64.)
  91. </Para>
  92. </ListItem>
  93. </VarListEntry>
  94. <VarListEntry>
  95. <Term>TT_ERR_PROPNAME</Term>
  96. <ListItem>
  97. <Para>The specified property name is syntactically invalid.
  98. </Para>
  99. </ListItem>
  100. </VarListEntry>
  101. </VariableList>
  102. </RefSect1>
  103. <RefSect1>
  104. <Title>SEE ALSO</Title>
  105. <Para>&cdeman.Tt.tt.c.h;.</Para>
  106. </RefSect1>
  107. </RefEntry>
  108. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->