SessionR.sgm 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!-- $XConsortium: SessionR.sgm /main/5 1996/08/30 13:12:25 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.XCSA.MAN51.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCSA.MAN51.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtSessionRestorePath</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtSessionRestorePath</Function></RefName>
  17. <RefPurpose>get a pathname for the application's state information file
  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/Session.h>
  28. </FuncSynopsisInfo>
  29. <FuncDef>Boolean <Function>DtSessionRestorePath</Function></FuncDef>
  30. <ParamDef>Widget <Parameter>widget</Parameter></ParamDef>
  31. <ParamDef>char **<Parameter>restorePath</Parameter></ParamDef>
  32. <ParamDef>char *<Parameter>restoreFile</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtSessionRestorePath</Function> function returns a pathname to an
  39. application's state information.
  40. </Para>
  41. <Para>The
  42. <Symbol Role="Variable">widget</Symbol> argument is
  43. the application's top level widget.
  44. The
  45. <Emphasis>restorePath</Emphasis> argument is the address of the character string to receive
  46. the pathname of the application's state information file.
  47. The
  48. <Emphasis>restoreFile</Emphasis> argument is the filename of the file containing the application
  49. state information.
  50. This is the filename specified with the
  51. <Literal>&minus;session</Literal> option at application invocation.
  52. </Para>
  53. </RefSect1>
  54. <RefSect1>
  55. <Title>RETURN VALUE</Title>
  56. <Para>Upon successful completion, the
  57. <Function>DtSessionRestorePath</Function> function returns True;
  58. otherwise, it returns False.
  59. </Para>
  60. </RefSect1>
  61. <RefSect1>
  62. <Title>APPLICATION USAGE</Title>
  63. <Para>The application must support the
  64. <Literal>&minus;session</Literal> command-line option.
  65. </Para>
  66. <Para>The application must use
  67. <Function>XtFree</Function>(3) to free data returned in *<Emphasis>restorePath</Emphasis>.
  68. </Para>
  69. </RefSect1>
  70. <RefSect1>
  71. <Title>SEE ALSO</Title>
  72. <Para>&cdeman.Dt.Session.h;, &cdeman.DtSessionSavePath;; <![ %CDE.C.CDE; [<Function>XtFree</Function>(3). ]]><![ %CDE.C.XO; [<Function>XtFree</Function>(3) in the &str-Zt;;
  73. &str-Zi;.
  74. ]]></Para>
  75. </RefSect1>
  76. </RefEntry>
  77. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:40:24-->