DaTToAtL.sgm 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!-- $XConsortium: DaTToAtL.sgm /main/5 1996/08/30 13:18:53 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.MAN33.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN33.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtDtsDataTypeToAttributeList</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtDtsDataTypeToAttributeList</Function></RefName>
  17. <RefPurpose>get a list of attributes for a data type
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  22. <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  23. <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  24. <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  25. <RefSynopsisDiv>
  26. <FuncSynopsis Remap="ANSI">
  27. <FuncSynopsisInfo>#include &lt;Dt/Dts.h>
  28. </FuncSynopsisInfo>
  29. <FuncDef>DtDtsAttribute <Function>**DtDtsDataTypeToAttributeList</Function></FuncDef>
  30. <ParamDef>const char *<Parameter>datatype</Parameter></ParamDef>
  31. <ParamDef>const char *<Parameter>opt_name</Parameter></ParamDef>
  32. </FuncSynopsis>
  33. </RefSynopsisDiv>
  34. <RefSect1>
  35. <Title>DESCRIPTION</Title>
  36. <Para>The
  37. <Function>DtDtsDataTypeToAttributeList</Function> function returns a list of attributes for a data type.
  38. </Para>
  39. <Para>The
  40. <Emphasis>datatype</Emphasis> argument is a pointer to a data type name string.
  41. </Para>
  42. <Para>The
  43. <Emphasis>opt_name</Emphasis> argument can be used to specify a name to be associated with the
  44. data type.
  45. If the
  46. <Emphasis>opt_name</Emphasis> argument is not
  47. <SystemItem Class="Constant">NULL</SystemItem>, it is used as a pseudo file name in typing;
  48. otherwise, certain attributes may be returned as
  49. <SystemItem Class="Constant">NULL</SystemItem> because the filename components could not be determined.
  50. </Para>
  51. </RefSect1>
  52. <RefSect1>
  53. <Title>RETURN VALUE</Title>
  54. <Para>Upon successful completion, the
  55. <Function>DtDtsDataTypeToAttributeList</Function> function returns a
  56. <SystemItem Class="Constant">NULL</SystemItem>-terminated array of pointers of
  57. <Literal>*DtDtsAttribute</Literal>, or
  58. <SystemItem Class="Constant">NULL</SystemItem> if no value could be determined.
  59. </Para>
  60. </RefSect1>
  61. <RefSect1>
  62. <Title>APPLICATION USAGE</Title>
  63. <Para>The application should use the
  64. &cdeman.DtDtsFreeAttributeList; function to release the memory for the returned value.
  65. </Para>
  66. <Para>The
  67. <Emphasis>opt_name</Emphasis> argument is useful when the attribute being returned
  68. contains a modifier string that depends on having
  69. a file name included.
  70. For example, if the
  71. <SystemItem Class="Constant">INSTANCE_ICON</SystemItem> attribute had the value
  72. <Literal>%name%.icon</Literal>, <Emphasis>opt_name</Emphasis> would be used to derive the
  73. <Literal>%name%</Literal> portion of the attribute value.
  74. See
  75. <![ %CDE.C.CDE; [&cdeman.dtdtsfile;. ]]><![ %CDE.C.XO; [<XRef Linkend="XCDI.M4DTS.anch.6" Role="4">. ]]></Para>
  76. </RefSect1>
  77. <RefSect1>
  78. <Title>SEE ALSO</Title>
  79. <Para><Filename Role="Header">Dt/Dts.h</Filename>, &cdeman.DtDtsLoadDataTypes;, &cdeman.DtDtsFreeAttributeList;.</Para>
  80. </RefSect1>
  81. </RefEntry>
  82. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->