bprop.sgm 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <!-- $XConsortium: bprop.sgm /main/5 1996/08/30 15:20:40 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.MAN235.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN235.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_spec_bprop</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_spec_bprop</Function></RefName>
  17. <RefPurpose>retrieve the ith value of a property
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: bprop.sgm /main/5 1996/08/30 15:20:40 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</Function></FuncDef>
  31. <ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>propname</Parameter></ParamDef>
  33. <ParamDef>int <Parameter>i</Parameter></ParamDef>
  34. <ParamDef>unsigned char **<Parameter>value</Parameter></ParamDef>
  35. <ParamDef>int *<Parameter>length</Parameter></ParamDef>
  36. </FuncSynopsis>
  37. </RefSynopsisDiv>
  38. <RefSect1>
  39. <Title>DESCRIPTION</Title>
  40. <Para>The
  41. <Function>tt_spec_bprop</Function> function
  42. retrieves the
  43. <Symbol Role="Variable">i</Symbol>th value of the specified property.
  44. </Para>
  45. <Para>The
  46. <Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
  47. The
  48. <Emphasis>propname</Emphasis> argument is the name of the property whose value is to be retrieved.
  49. The name must be
  50. less than 64 characters.
  51. The
  52. <Symbol Role="Variable">i</Symbol> argument is the item of the list for which a value is to be obtained.
  53. The list numbering
  54. begins with zero.
  55. The
  56. <Symbol Role="Variable">value</Symbol> argument is the
  57. address of a character pointer to which the ToolTalk service is to point a
  58. string that contains the contents of the spec's property.
  59. If there are
  60. <Symbol Role="Variable">i</Symbol> values
  61. or fewer, the pointer is set to zero.
  62. The
  63. <Symbol Role="Variable">length</Symbol> argument is the address of an integer to which the
  64. ToolTalk service is to set the length of the value in bytes.
  65. </Para>
  66. </RefSect1>
  67. <RefSect1>
  68. <Title>RETURN VALUE</Title>
  69. <Para>Upon successful completion, the
  70. <Function>tt_spec_bprop</Function> function returns the status of the operation as one of the following
  71. <StructName Role="typedef">Tt_status</StructName> values:
  72. </Para>
  73. <VariableList>
  74. <VarListEntry>
  75. <Term>TT_OK</Term>
  76. <ListItem>
  77. <Para>The operation completed successfully.
  78. </Para>
  79. </ListItem>
  80. </VarListEntry>
  81. <VarListEntry>
  82. <Term>TT_ERR_NOMP</Term>
  83. <ListItem>
  84. <Para>The
  85. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  86. </Para>
  87. </ListItem>
  88. </VarListEntry>
  89. <VarListEntry>
  90. <Term>TT_ERR_NUM</Term>
  91. <ListItem>
  92. <Para>The integer value passed was invalid (out of range).
  93. </Para>
  94. </ListItem>
  95. </VarListEntry>
  96. <VarListEntry>
  97. <Term>TT_ERR_OBJID</Term>
  98. <ListItem>
  99. <Para>The
  100. <Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
  101. </Para>
  102. </ListItem>
  103. </VarListEntry>
  104. <VarListEntry>
  105. <Term>TT_ERR_PROPNAME</Term>
  106. <ListItem>
  107. <Para>The specified property name is syntactically invalid.
  108. </Para>
  109. </ListItem>
  110. </VarListEntry>
  111. </VariableList>
  112. </RefSect1>
  113. <RefSect1>
  114. <Title>SEE ALSO</Title>
  115. <Para>&cdeman.Tt.tt.c.h;.</Para>
  116. </RefSect1>
  117. </RefEntry>
  118. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->