prop_cnt.sgm 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!-- $XConsortium: prop_cnt.sgm /main/5 1996/08/30 15:23:44 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.MAN244.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN244.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_spec_prop_count</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_spec_prop_count</Function></RefName>
  17. <RefPurpose>return the number of values listed in this spec property
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: prop_cnt.sgm /main/5 1996/08/30 15:23:44 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>int <Function>tt_spec_prop_count</Function></FuncDef>
  31. <ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>propname</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>tt_spec_prop_count</Function> function returns the number of values listed in this spec property.
  39. </Para>
  40. <Para>The
  41. <Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
  42. The
  43. <Emphasis>propname</Emphasis> argument is the name of the property that contains the value to be returned.
  44. </Para>
  45. </RefSect1>
  46. <RefSect1>
  47. <Title>RETURN VALUE</Title>
  48. <Para>Upon successful completion, the
  49. <Function>tt_spec_prop_count</Function> function returns the number of values listed in the spec property.
  50. The application can use
  51. &cdeman.tt.int.error; to extract one of the following
  52. <StructName Role="typedef">Tt_status</StructName> values from the returned integer:
  53. </Para>
  54. <VariableList>
  55. <VarListEntry>
  56. <Term>TT_OK</Term>
  57. <ListItem>
  58. <Para>The operation completed successfully.
  59. </Para>
  60. </ListItem>
  61. </VarListEntry>
  62. <VarListEntry>
  63. <Term>TT_ERR_DBAVAIL</Term>
  64. <ListItem>
  65. <Para>The ToolTalk service could not access the
  66. ToolTalk database needed for this operation.
  67. </Para>
  68. </ListItem>
  69. </VarListEntry>
  70. <VarListEntry>
  71. <Term>TT_ERR_DBEXIST</Term>
  72. <ListItem>
  73. <Para>The ToolTalk service could not access the
  74. specified ToolTalk database in the expected place.
  75. </Para>
  76. </ListItem>
  77. </VarListEntry>
  78. <VarListEntry>
  79. <Term>TT_ERR_NOMP</Term>
  80. <ListItem>
  81. <Para>The
  82. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  83. </Para>
  84. </ListItem>
  85. </VarListEntry>
  86. <VarListEntry>
  87. <Term>TT_ERR_OBJID</Term>
  88. <ListItem>
  89. <Para>The
  90. <Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
  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;, &cdeman.tt.int.error;.</Para>
  106. </RefSect1>
  107. </RefEntry>
  108. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->