SetDaT.sgm 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!-- $XConsortium: SetDaT.sgm /main/5 1996/08/30 13:21:55 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.MAN46.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN46.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtDtsSetDataType</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtDtsSetDataType</Function></RefName>
  17. <RefPurpose>set the data type of a directory
  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>char <Function>*DtDtsSetDataType</Function></FuncDef>
  30. <ParamDef>const char *<Parameter>dirpath</Parameter></ParamDef>
  31. <ParamDef>const char *<Parameter>datatype</Parameter></ParamDef>
  32. <ParamDef>const int <Parameter>override</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtDtsSetDataType</Function> function sets the data type of a directory.
  39. This may be accomplished by adding a file
  40. named with a leading dot to the directory.
  41. </Para>
  42. <Para>The
  43. <Emphasis>dirpath</Emphasis> argument is a pathname of the directory.
  44. </Para>
  45. <Para>The
  46. <Emphasis>datatype</Emphasis> argument is a data type.
  47. </Para>
  48. <Para>If the value is already set,
  49. <Function>DtDtsSetDataType</Function> does not change the value unless the
  50. <Emphasis>override</Emphasis> argument is set to True.
  51. </Para>
  52. </RefSect1>
  53. <RefSect1>
  54. <Title>RETURN VALUE</Title>
  55. <Para>Upon successful completion, the
  56. <Function>DtDtsSetDataType</Function> function returns a pointer to a data type string, or
  57. <SystemItem Class="Constant">NULL</SystemItem> if it was unable to set or retrieve the data type.
  58. </Para>
  59. </RefSect1>
  60. <RefSect1>
  61. <Title>APPLICATION USAGE</Title>
  62. <Para>Directories can have data types associated with them,
  63. just as regular files can.
  64. For example, a file manager may choose to
  65. alter the appearance of the directory's icon
  66. based on this data type or a system may
  67. use a directory of files as an means of
  68. supporting a complex form of data, such as
  69. a compund document.
  70. </Para>
  71. </RefSect1>
  72. <RefSect1>
  73. <Title>SEE ALSO</Title>
  74. <Para><Filename Role="Header">Dt/Dts.h</Filename>, &cdeman.DtDtsLoadDataTypes;.</Para>
  75. </RefSect1>
  76. </RefEntry>
  77. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->