propname.sgm 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!-- $XConsortium: propname.sgm /main/5 1996/08/30 15:24:56 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.MAN246.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN246.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_spec_propname</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_spec_propname</Function></RefName>
  17. <RefPurpose>return an element of the property name list for an object spec
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: propname.sgm /main/5 1996/08/30 15:24:56 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>char <Function>*tt_spec_propname</Function></FuncDef>
  31. <ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
  32. <ParamDef>int <Parameter>n</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>tt_spec_propname</Function> function
  39. returns the
  40. <Symbol Role="Variable">n</Symbol>th element of the property name list for this object spec.
  41. </Para>
  42. <Para>The
  43. <Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
  44. The
  45. <Symbol Role="Variable">n</Symbol> argument is the item of the list whose element is to be returned.
  46. The list numbering
  47. begins with zero.
  48. </Para>
  49. </RefSect1>
  50. <RefSect1>
  51. <Title>RETURN VALUE</Title>
  52. <Para>Upon successful completion, the
  53. <Function>tt_spec_propname</Function> function returns the property name.
  54. If there are
  55. <Symbol Role="Variable">n</Symbol> properties or less,
  56. <Function>tt_spec_propname</Function> returns
  57. <SystemItem Class="Constant">NULL</SystemItem>. The application can use
  58. &cdeman.tt.ptr.error; to extract one of the following
  59. <StructName Role="typedef">Tt_status</StructName> values from the returned pointer:
  60. </Para>
  61. <VariableList>
  62. <VarListEntry>
  63. <Term>TT_OK</Term>
  64. <ListItem>
  65. <Para>The operation completed successfully.
  66. </Para>
  67. </ListItem>
  68. </VarListEntry>
  69. <VarListEntry>
  70. <Term>TT_ERR_DBAVAIL</Term>
  71. <ListItem>
  72. <Para>The ToolTalk service could not access the
  73. ToolTalk database needed for this operation.
  74. </Para>
  75. </ListItem>
  76. </VarListEntry>
  77. <VarListEntry>
  78. <Term>TT_ERR_DBEXIST</Term>
  79. <ListItem>
  80. <Para>The ToolTalk service could not access the
  81. specified ToolTalk database in the expected place.
  82. </Para>
  83. </ListItem>
  84. </VarListEntry>
  85. <VarListEntry>
  86. <Term>TT_ERR_NOMP</Term>
  87. <ListItem>
  88. <Para>The
  89. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  90. </Para>
  91. </ListItem>
  92. </VarListEntry>
  93. <VarListEntry>
  94. <Term>TT_ERR_NUM</Term>
  95. <ListItem>
  96. <Para>The integer value passed was invalid (out of range).
  97. </Para>
  98. </ListItem>
  99. </VarListEntry>
  100. <VarListEntry>
  101. <Term>TT_ERR_OBJID</Term>
  102. <ListItem>
  103. <Para>The
  104. <Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
  105. </Para>
  106. </ListItem>
  107. </VarListEntry>
  108. </VariableList>
  109. </RefSect1>
  110. <RefSect1>
  111. <Title>APPLICATION USAGE</Title>
  112. <Para>The application should use
  113. &cdeman.tt.free; to free any data stored in the address returned by the
  114. ToolTalk API.
  115. </Para>
  116. </RefSect1>
  117. <RefSect1>
  118. <Title>SEE ALSO</Title>
  119. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.ptr.error;, &cdeman.tt.free;.</Para>
  120. </RefSect1>
  121. </RefEntry>
  122. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->