Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / doc / C / guides / man / m3_tt_spec / prop.sgm
1 <!-- $XConsortium: prop.sgm /main/5 1996/08/30 15:22:40 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
10 <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN242.rsml.1">]]>
11 <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN242.rsml.1">]]>
12 <RefMeta>
13 <RefEntryTitle>tt_spec_prop</RefEntryTitle>
14 <ManVolNum>library call</ManVolNum>
15 </RefMeta>
16 <RefNameDiv>
17 <RefName><Function>tt_spec_prop</Function></RefName>
18 <RefPurpose>retrieve the ith value of the property associated with an object spec
19 </RefPurpose>
20 </RefNameDiv>
21 <!-- $XConsortium: prop.sgm /main/5 1996/08/30 15:22:40 rws $-->
22 <!-- CDE Common Source Format, Version 1.0.0-->
23 <!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
24 <!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
25 <!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
26 <!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
27 <RefSynopsisDiv>
28 <FuncSynopsis Remap="ANSI">
29 <FuncSynopsisInfo>#include &lt;Tt/tt_c.h>
30 </FuncSynopsisInfo>
31 <FuncDef>char <Function>*tt_spec_prop</Function></FuncDef>
32 <ParamDef>const char *<Parameter>objid</Parameter></ParamDef>
33 <ParamDef>const char *<Parameter>propname</Parameter></ParamDef>
34 <ParamDef>int <Parameter>i</Parameter></ParamDef>
35 </FuncSynopsis>
36 </RefSynopsisDiv>
37 <RefSect1>
38 <Title>DESCRIPTION</Title>
39 <Para>The
40 <Function>tt_spec_prop</Function> function
41 retrieves the
42 <Symbol Role="Variable">i</Symbol>th value of the property associated with this object spec.
43 </Para>
44 <Para>The
45 <Emphasis>objid</Emphasis> argument is the identifier of the object involved in this operation.
46 The
47 <Emphasis>propname</Emphasis> argument is the name of the property associated with the object spec.
48 The
49 <Symbol Role="Variable">i</Symbol> argument is the item of the list whose value is to be retrieved.
50 The list numbering begins with zero.
51 </Para>
52 </RefSect1>
53 <RefSect1>
54 <Title>RETURN VALUE</Title>
55 <Para>Upon successful completion, the
56 <Function>tt_spec_prop</Function> function returns the contents of the property value.
57 If there are
58 <Symbol Role="Variable">i</Symbol> values or less,
59 <Function>tt_spec_prop</Function> returns
60 <SystemItem Class="Constant">NULL</SystemItem>. The application can use
61 &cdeman.tt.ptr.error; to extract one of the following
62 <StructName Role="typedef">Tt_status</StructName> values from the returned pointer:
63 </Para>
64 <VariableList>
65 <VarListEntry>
66 <Term>TT_OK</Term>
67 <ListItem>
68 <Para>The operation completed successfully.
69 </Para>
70 </ListItem>
71 </VarListEntry>
72 <VarListEntry>
73 <Term>TT_ERR_DBAVAIL</Term>
74 <ListItem>
75 <Para>The ToolTalk service could not access the
76 ToolTalk database needed for this operation.
77 </Para>
78 </ListItem>
79 </VarListEntry>
80 <VarListEntry>
81 <Term>TT_ERR_DBEXIST</Term>
82 <ListItem>
83 <Para>The ToolTalk service could not access the
84 specified ToolTalk database in the expected place.
85 </Para>
86 </ListItem>
87 </VarListEntry>
88 <VarListEntry>
89 <Term>TT_ERR_NOMP</Term>
90 <ListItem>
91 <Para>The
92 &cdeman.ttsession; process is not running and the ToolTalk service cannot restart it.
93 </Para>
94 </ListItem>
95 </VarListEntry>
96 <VarListEntry>
97 <Term>TT_ERR_NUM</Term>
98 <ListItem>
99 <Para>The integer value passed was invalid (out of range).
100 </Para>
101 </ListItem>
102 </VarListEntry>
103 <VarListEntry>
104 <Term>TT_ERR_OBJID</Term>
105 <ListItem>
106 <Para>The
107 <Emphasis>objid</Emphasis> passed to the ToolTalk service does not reference an existing object spec.
108 </Para>
109 </ListItem>
110 </VarListEntry>
111 <VarListEntry>
112 <Term>TT_ERR_PROPNAME</Term>
113 <ListItem>
114 <Para>The specified property name is syntactically invalid.
115 </Para>
116 </ListItem>
117 </VarListEntry>
118 </VariableList>
119 </RefSect1>
120 <RefSect1>
121 <Title>APPLICATION USAGE</Title>
122 <Para>The application should use
123 &cdeman.tt.free; to free any data stored in the address returned by the
124 ToolTalk API.
125 </Para>
126 <Para>If the returned value has embedded nulls, its length cannot be determined.
127 </Para>
128 </RefSect1>
129 <RefSect1>
130 <Title>SEE ALSO</Title>
131 <Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.ptr.error;, &cdeman.tt.free;.</Para>
132 </RefSect1>
133 </RefEntry>
134 <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->