BufToAtL.sgm 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <!-- $XConsortium: BufToAtL.sgm /main/5 1996/08/30 13:17: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.MAN27.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN27.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtDtsBufferToAttributeList</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtDtsBufferToAttributeList</Function></RefName>
  17. <RefPurpose>get a list of data attributes for a byte stream
  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>**DtDtsBufferToAttributeList</Function></FuncDef>
  30. <ParamDef>const void *<Parameter>buffer</Parameter></ParamDef>
  31. <ParamDef>const int <Parameter>size</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>opt_name</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtDtsBufferToAttributeList</Function> function returns a list of data attributes
  39. for a given byte stream.
  40. </Para>
  41. <Para>The
  42. <Symbol Role="Variable">buffer</Symbol> argument
  43. is a pointer to the buffer of the data to be typed.
  44. </Para>
  45. <Para>The
  46. <Symbol Role="Variable">size</Symbol> argument
  47. is the size of the buffer in bytes.
  48. </Para>
  49. <Para>The
  50. <Emphasis>opt_name</Emphasis> argument can be used to specify a name to be associated with the buffer.
  51. If the
  52. <Emphasis>opt_name</Emphasis> argument is not
  53. <SystemItem Class="Constant">NULL</SystemItem>, it is used as a pseudo file name in typing;
  54. otherwise, certain attributes may be returned as
  55. <SystemItem Class="Constant">NULL</SystemItem> because the filename components could not be determined.
  56. </Para>
  57. </RefSect1>
  58. <RefSect1>
  59. <Title>RETURN VALUE</Title>
  60. <Para>Upon successful completion, the
  61. <Function>DtDtsBufferToAttributeList</Function> function returns a
  62. <SystemItem Class="Constant">NULL</SystemItem>-terminated array of pointers of
  63. <Literal>*DtDtsAttribute</Literal>. If no value could be determined, it returns
  64. <SystemItem Class="Constant">NULL</SystemItem>.</Para>
  65. </RefSect1>
  66. <RefSect1>
  67. <Title>APPLICATION USAGE</Title>
  68. <Para>The application should use the
  69. &cdeman.DtDtsFreeAttributeList; function to release the memory for the returned value.
  70. </Para>
  71. <Para>The
  72. <Function>DtDtsBufferToAttributeList</Function> function assumes that the buffer is readable and writable
  73. by the user, group and other file classes
  74. and selects a type accordingly.
  75. An application requiring a type based on read-only
  76. permissions should use
  77. <Function>DtDtsDataToDataType</Function>.</Para>
  78. </RefSect1>
  79. <RefSect1>
  80. <Title>SEE ALSO</Title>
  81. <Para><Filename Role="Header">Dt/Dts.h</Filename>, &cdeman.DtDtsDataToDataType;, &cdeman.DtDtsLoadDataTypes;, &cdeman.DtDtsFreeAttributeList;.</Para>
  82. </RefSect1>
  83. </RefEntry>
  84. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->