libtt/process.c: coverity CID 87051; use after free
[oweals/cde.git] / cde / lib / DtHelp / XInterfaceI.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: XInterfaceI.h /main/8 1995/12/18 16:23:57 cde-hp $ */
24 /*************************************<+>*************************************
25  *****************************************************************************
26  **
27  **  File:   XInterface.h
28  **
29  **  Project:
30  **
31  **  Description:  Public Header file for Canvas.c
32  **
33  **  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 Hewlett-Packard Company
34  **
35  **  (c) Copyright 1993, 1994 Hewlett-Packard Company
36  **  (c) Copyright 1993, 1994 International Business Machines Corp.
37  **  (c) Copyright 1993, 1994 Sun Microsystems, Inc.
38  **  (c) Copyright 1993, 1994 Novell, Inc.
39  **
40  *******************************************************************
41  *************************************<+>*************************************/
42 #ifndef _XInterface_h
43 #define _XInterface_h
44
45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
50 /********    Public Defines Declarations    ********/
51
52 /********    Public Typedef Declarations    ********/
53
54 /********    Public Structures Declarations    ********/
55
56 /********    Public Macro Declarations    ********/
57
58 /********    Semi-Private Function Declarations    ********/
59 extern  void             _DtHelpDADestroyRegion (
60                                 _DtCvPointer     client_data,
61                                 _DtCvPointer     reg_info);
62 extern  void             _DtHelpDADestroyGraphic (
63                                 _DtCvPointer     client_data,
64                                 _DtCvPointer     graphic_ptr);
65 extern  void             _DtHelpDADestroySpc (
66                                 _DtCvPointer     client_data,
67                                 _DtCvPointer     spc_handle);
68 extern  const char      *_DtHelpDAGetSpcString(int idx);
69 extern  _DtCvStatus      _DtHelpDALoadGraphic (
70                                 _DtCvPointer     client_data,
71                                 char            *vol_xid,
72                                 char            *topic_xid,
73                                 char            *file_xid,
74                                 char            *format,
75                                 char            *method,
76                                 _DtCvUnit       *ret_width,
77                                 _DtCvUnit       *ret_height,
78                                 _DtCvPointer    *ret_region);
79 extern  void             _DtHelpDAResolveFont (
80                                 _DtCvPointer     client_data,
81                                 char            *lang,
82                                 const char      *char_set,
83                                 _DtHelpFontHints font_attr,
84                                 _DtCvPointer    *ret_font);
85 extern  _DtCvStatus      _DtHelpDAResolveSpc (
86                                 _DtCvPointer     client_data,
87                                 char            *lang,
88                                 const char      *char_set,
89                                 _DtHelpFontHints font_attr,
90                                 const char      *spc_string,
91                                 _DtCvPointer    *ret_handle,
92                                 _DtCvUnit       *ret_width,
93                                 _DtCvUnit       *ret_height,
94                                 _DtCvUnit       *ret_ascent);
95
96 /********    Virtual UI Function Declarations    ********/
97
98 extern  _DtCvStatus     _DtHelpDABuildSelection (
99                                 _DtCvPointer     client_data,
100                                 _DtCvElemType    elem_type,
101                                 unsigned int     mask,
102                                 _DtCvPointer    *prev_info,
103                                 _DtCvUnit        space,
104                                 _DtCvUnit        width,
105                                 _DtCvFlags       flags,
106                                 _DtCvPointer     data);
107 extern  void            _DtHelpDAGetCvsMetrics (
108                                 _DtCvPointer             client_data,
109                                 _DtCvElemType    elem_type,
110                                 _DtCvPointer     ret_metrics);
111 extern  void            _DtHelpDAGetFontMetrics (
112                                 _DtCvPointer     client_data,
113                                 _DtCvPointer     font_ptr,
114                                 _DtCvUnit       *ret_ascent,
115                                 _DtCvUnit       *ret_descent,
116                                 _DtCvUnit       *char_width,
117                                 _DtCvUnit       *ret_super,
118                                 _DtCvUnit       *ret_sub);
119 extern  _DtCvUnit       _DtHelpDAGetStrWidth (
120                                 _DtCvPointer     client_data,
121                                 _DtCvElemType    elem_type,
122                                 _DtCvPointer     data);
123 extern  void            _DtHelpDARenderElem (
124                                 _DtCvPointer    client_data,
125                                 _DtCvElemType   elem_type,
126                                 _DtCvUnit       x,
127                                 _DtCvUnit       y,
128                                 int             link_type,
129                                 _DtCvFlags      old_flags,
130                                 _DtCvFlags      new_flags,
131                                 _DtCvElemType   trav_type,
132                                 _DtCvPointer    trav_data,
133                                 _DtCvPointer    data);
134 extern void             _DtHelpDATocMarker (
135                                 XtPointer    client_data,
136                                 Boolean      draw);
137
138 #ifdef __cplusplus
139 }  /* Close scope of 'extern "C"' declaration which encloses file. */
140 #endif
141
142
143 #endif /* _XInterface_h */
144 /* DON'T ADD ANYTHING AFTER THIS #endif */