Kill most warnings in lib/DtTerm.
[oweals/cde.git] / cde / lib / DtTerm / TermPrim / TermPrimPendingText.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 /* 
24 ** $XConsortium: TermPrimPendingText.h /main/1 1996/04/21 19:18:33 drk $
25 */
26 /*                                                                      *
27  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
28  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
29  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
30  * (c) Copyright 1993, 1994 Novell, Inc.                                *
31  */
32 #ifndef   _Dt_TermPrimPendingText_h
33 #define   _Dt_TermPrimPendingText_h
34
35 #include <X11/Intrinsic.h>
36
37 #define TextIsPendingWrite(list) (list.head != NULL)
38     
39 #ifdef     __cplusplus
40 extern "C" {
41 #endif  /* __cplusplus */
42
43 typedef struct _PendingTextChunkRec   *PendingTextChunk;
44 typedef struct _PendingTextRec        *PendingText;
45
46 extern
47 Boolean
48 _DtTermPrimPendingTextIsPending
49 (
50     PendingText list
51 );
52
53 extern
54 PendingTextChunk
55 _DtTermPrimPendingTextGetChunk
56 (
57     PendingText list
58 );
59
60 extern
61 PendingTextChunk
62 _DtTermPrimPendingTextAppendChunk
63 (
64     PendingText list,
65     int         len
66 );
67
68 extern
69 void
70 _DtTermPrimPendingTextReplace
71 (
72     PendingTextChunk chunk,
73     unsigned char *buffer,
74     int bufferLen
75 );
76
77 extern
78 void
79 _DtTermPrimPendingTextRemoveChunk
80 (
81     PendingText         list,
82     PendingTextChunk    chunk
83 );
84
85 extern
86 void
87 _DtTermPrimPendingTextFlush
88 (
89     PendingText list
90 );
91
92 extern
93 Boolean
94 _DtTermPrimPendingTextAppendText
95 (
96     PendingText     list,
97     unsigned char  *text,
98     int             len
99 );
100
101 extern
102 void
103 _DtTermPrimPendingTextWrite
104 (
105     PendingText     list,
106     int             fd
107 );
108
109 extern
110 PendingText
111 _DtTermPrimPendingTextCreate
112 (
113     void
114 );
115
116 extern
117 void
118 _DtTermPrimPendingTextDestroy
119 (
120     PendingText     ptr
121 );
122
123 extern
124 Boolean
125 _DtTermPrimPendingTextAppend
126 (
127     PendingText     list,
128     unsigned char  *text,
129     int             len
130 );
131
132 #ifdef  __cplusplus
133 } /* close scope of 'extern "C"'... */
134 #endif  /* __cplusplus */
135
136 #endif /* _Dt_TermPrimPendingText_h */
137 /* DON'T ADD ANYTHING AFTER THIS #endif... */
138