move.sgm 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!-- $XConsortium: move.sgm /main/5 1996/08/30 15:22: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.XCDI.MAN241.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN241.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>tt_spec_move</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>tt_spec_move</Function></RefName>
  17. <RefPurpose>notify the ToolTalk service that an object has moved to a different file
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- $XConsortium: move.sgm /main/5 1996/08/30 15:22:25 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>char <Function>*tt_spec_move</Function></FuncDef>
  31. <ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
  32. <ParamDef>const char *<Parameter>newfilepath</Parameter></ParamDef>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>tt_spec_move</Function> function
  39. notifies the ToolTalk service that this object has moved to a different file.
  40. </Para>
  41. <Para>The ToolTalk service returns a new
  42. objid
  43. for the object and leaves a forwarding
  44. pointer from the old
  45. objid
  46. to the new one.
  47. </Para>
  48. <Para>If a new
  49. objid
  50. is not required (for example, because the new and old
  51. files are in the same file system),
  52. <Function>tt_spec_move</Function> returns
  53. <SystemItem Class="Constant">TT_WRN_SAME_OBJID</SystemItem>.</Para>
  54. <Para>The
  55. <Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
  56. </Para>
  57. <Para>The
  58. <Emphasis>newfilepath</Emphasis> argument is the new file name.
  59. </Para>
  60. </RefSect1>
  61. <RefSect1>
  62. <Title>RETURN VALUE</Title>
  63. <Para>Upon successful completion, the
  64. <Function>tt_spec_move</Function> function returns the new unique identifier of the object involved in this operation.
  65. The application can use
  66. &cdeman.tt.ptr.error; to extract one of the following
  67. <StructName Role="typedef">Tt_status</StructName> values from the returned pointer:
  68. </Para>
  69. <VariableList>
  70. <VarListEntry>
  71. <Term>TT_OK</Term>
  72. <ListItem>
  73. <Para>The operation completed successfully.
  74. </Para>
  75. </ListItem>
  76. </VarListEntry>
  77. <VarListEntry>
  78. <Term>TT_ERR_DBAVAIL</Term>
  79. <ListItem>
  80. <Para>The ToolTalk service could not access the
  81. ToolTalk database needed for this operation.
  82. </Para>
  83. </ListItem>
  84. </VarListEntry>
  85. <VarListEntry>
  86. <Term>TT_ERR_DBEXIST</Term>
  87. <ListItem>
  88. <Para>The ToolTalk service could not access the
  89. specified ToolTalk database in the expected place.
  90. </Para>
  91. </ListItem>
  92. </VarListEntry>
  93. <VarListEntry>
  94. <Term>TT_ERR_NOMP</Term>
  95. <ListItem>
  96. <Para>The
  97. &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
  98. </Para>
  99. </ListItem>
  100. </VarListEntry>
  101. <VarListEntry>
  102. <Term>TT_ERR_OBJID</Term>
  103. <ListItem>
  104. <Para>The
  105. <Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
  106. </Para>
  107. </ListItem>
  108. </VarListEntry>
  109. <VarListEntry>
  110. <Term>TT_ERR_PATH</Term>
  111. <ListItem>
  112. <Para>The specified pathname included an unsearchable directory.
  113. </Para>
  114. </ListItem>
  115. </VarListEntry>
  116. <VarListEntry>
  117. <Term>TT_WRN_SAME_OBJID</Term>
  118. <ListItem>
  119. <Para>A new
  120. <Emphasis>objid</Emphasis> is not required.
  121. </Para>
  122. </ListItem>
  123. </VarListEntry>
  124. </VariableList>
  125. </RefSect1>
  126. <RefSect1>
  127. <Title>APPLICATION USAGE</Title>
  128. <Para>The application should use
  129. &cdeman.tt.free; to free any data stored in the address returned by the
  130. ToolTalk API.
  131. </Para>
  132. <Para>For efficiency and reliability,
  133. the application should replace any references in the application to the old
  134. <Emphasis>objid</Emphasis> with references to the new one.
  135. </Para>
  136. </RefSect1>
  137. <RefSect1>
  138. <Title>SEE ALSO</Title>
  139. <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.ptr.error;, &cdeman.tt.free;.</Para>
  140. </RefSect1>
  141. </RefEntry>
  142. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->