144 lines
4.3 KiB
Plaintext
144 lines
4.3 KiB
Plaintext
<!-- $XConsortium: move.sgm /main/5 1996/08/30 15:22:25 rws $ -->
|
|
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
|
|
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
|
|
<!-- (c) Copyright 1995 International Business Machines Corp. -->
|
|
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
|
|
<!-- (c) Copyright 1995 Novell, Inc. -->
|
|
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
|
|
<!-- (c) Copyright 1995 Hitachi. -->
|
|
|
|
<![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN241.rsml.1">]]>
|
|
<![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN241.rsml.1">]]>
|
|
<RefMeta>
|
|
<RefEntryTitle>tt_spec_move</RefEntryTitle>
|
|
<ManVolNum>library call</ManVolNum>
|
|
</RefMeta>
|
|
<RefNameDiv>
|
|
<RefName><Function>tt_spec_move</Function></RefName>
|
|
<RefPurpose>notify the ToolTalk service that an object has moved to a different file
|
|
</RefPurpose>
|
|
</RefNameDiv>
|
|
<!-- $XConsortium: move.sgm /main/5 1996/08/30 15:22:25 rws $-->
|
|
<!-- CDE Common Source Format, Version 1.0.0-->
|
|
<!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
|
|
<!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
|
|
<!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
|
|
<!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
|
|
<RefSynopsisDiv>
|
|
<FuncSynopsis Remap="ANSI">
|
|
<FuncSynopsisInfo>#include <Tt/tt_c.h>
|
|
</FuncSynopsisInfo>
|
|
<FuncDef>char <Function>*tt_spec_move</Function></FuncDef>
|
|
<ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
|
|
<ParamDef>const char *<Parameter>newfilepath</Parameter></ParamDef>
|
|
</FuncSynopsis>
|
|
</RefSynopsisDiv>
|
|
<RefSect1>
|
|
<Title>DESCRIPTION</Title>
|
|
<Para>The
|
|
<Function>tt_spec_move</Function> function
|
|
notifies the ToolTalk service that this object has moved to a different file.
|
|
</Para>
|
|
<Para>The ToolTalk service returns a new
|
|
objid
|
|
for the object and leaves a forwarding
|
|
pointer from the old
|
|
objid
|
|
to the new one.
|
|
</Para>
|
|
<Para>If a new
|
|
objid
|
|
is not required (for example, because the new and old
|
|
files are in the same file system),
|
|
<Function>tt_spec_move</Function> returns
|
|
<SystemItem Class="Constant">TT_WRN_SAME_OBJID</SystemItem>.</Para>
|
|
<Para>The
|
|
<Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
|
|
</Para>
|
|
<Para>The
|
|
<Emphasis>newfilepath</Emphasis> argument is the new file name.
|
|
</Para>
|
|
</RefSect1>
|
|
<RefSect1>
|
|
<Title>RETURN VALUE</Title>
|
|
<Para>Upon successful completion, the
|
|
<Function>tt_spec_move</Function> function returns the new unique identifier of the object involved in this operation.
|
|
The application can use
|
|
&cdeman.tt.ptr.error; to extract one of the following
|
|
<StructName Role="typedef">Tt_status</StructName> values from the returned pointer:
|
|
</Para>
|
|
<VariableList>
|
|
<VarListEntry>
|
|
<Term>TT_OK</Term>
|
|
<ListItem>
|
|
<Para>The operation completed successfully.
|
|
</Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
<VarListEntry>
|
|
<Term>TT_ERR_DBAVAIL</Term>
|
|
<ListItem>
|
|
<Para>The ToolTalk service could not access the
|
|
ToolTalk database needed for this operation.
|
|
</Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
<VarListEntry>
|
|
<Term>TT_ERR_DBEXIST</Term>
|
|
<ListItem>
|
|
<Para>The ToolTalk service could not access the
|
|
specified ToolTalk database in the expected place.
|
|
</Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
<VarListEntry>
|
|
<Term>TT_ERR_NOMP</Term>
|
|
<ListItem>
|
|
<Para>The
|
|
&cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
|
|
</Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
<VarListEntry>
|
|
<Term>TT_ERR_OBJID</Term>
|
|
<ListItem>
|
|
<Para>The
|
|
<Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
|
|
</Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
<VarListEntry>
|
|
<Term>TT_ERR_PATH</Term>
|
|
<ListItem>
|
|
<Para>The specified pathname included an unsearchable directory.
|
|
</Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
<VarListEntry>
|
|
<Term>TT_WRN_SAME_OBJID</Term>
|
|
<ListItem>
|
|
<Para>A new
|
|
<Emphasis>objid</Emphasis> is not required.
|
|
</Para>
|
|
</ListItem>
|
|
</VarListEntry>
|
|
</VariableList>
|
|
</RefSect1>
|
|
<RefSect1>
|
|
<Title>APPLICATION USAGE</Title>
|
|
<Para>The application should use
|
|
&cdeman.tt.free; to free any data stored in the address returned by the
|
|
ToolTalk API.
|
|
</Para>
|
|
<Para>For efficiency and reliability,
|
|
the application should replace any references in the application to the old
|
|
<Emphasis>objid</Emphasis> with references to the new one.
|
|
</Para>
|
|
</RefSect1>
|
|
<RefSect1>
|
|
<Title>SEE ALSO</Title>
|
|
<Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.ptr.error;, &cdeman.tt.free;.</Para>
|
|
</RefSect1>
|
|
</RefEntry>
|
|
<!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->
|