<!-- $XConsortium: onot_cre.sgm /main/5 1996/08/30 12:49:19 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.MAN165.rsml.1">]]>
<![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN165.rsml.1">]]>
<RefMeta>
<RefEntryTitle>tt_onotice_create</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>tt_onotice_create</Function></RefName>
<RefPurpose>create a notice
</RefPurpose>
</RefNameDiv>
<!-- $XConsortium: onot_cre.sgm /main/5 1996/08/30 12:49:19 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 &lt;Tt/tt_c.h>
</FuncSynopsisInfo>
<FuncDef>Tt_message <Function>tt_onotice_create</Function></FuncDef>
<ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
<ParamDef>const char *<Parameter>op</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para>The
<Function>tt_onotice_create</Function> function
creates a message.
The created message contains the following:
</Para>
<Para><StructName Role="typedef">Tt_address</StructName> =
<SystemItem Class="Constant">TT_OBJECT</SystemItem> <StructName Role="typedef">Tt_class</StructName> =
<SystemItem Class="Constant">TT_NOTICE</SystemItem></Para>
<Para><![ %CDE.C.XO; []]>The application can use the returned handle to add
arguments and other attributes, and to send the message.
</Para>
<Para>The
<Emphasis>objid</Emphasis> argument is the identifier of the specified object.
The
<Symbol Role="Variable">op</Symbol> argument is the operation to be performed by the receiving process.
</Para>
</RefSect1>
<RefSect1>
<Title>RETURN VALUE</Title>
<Para>Upon successful completion, the
<Function>tt_onotice_create</Function> function returns the unique handle that identifies the message.
The application can use
&cdeman.tt.ptr.error; to extract one of the following
<StructName Role="typedef">Tt_status</StructName> values from the returned handle:
</Para>
<VariableList>
<VarListEntry>
<Term>TT_OK</Term>
<ListItem>
<Para>The operation completed successfully.
</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_PROCID</Term>
<ListItem>
<Para>The specified process identifier is out of date or invalid.
</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>
</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-->
