Cleanup of -Wpointer-compare warnings.
[oweals/cde.git] / cde / lib / DtPrint / PsubUtilI.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 libraries 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: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */
24 /*
25  * DtPrint/PsubUtilI.h
26  */
27 /*
28  * (c) Copyright 1996 Digital Equipment Corporation.
29  * (c) Copyright 1996 Hewlett-Packard Company.
30  * (c) Copyright 1996 International Business Machines Corp.
31  * (c) Copyright 1996 Sun Microsystems, Inc.
32  * (c) Copyright 1996 Novell, Inc. 
33  * (c) Copyright 1996 FUJITSU LIMITED.
34  * (c) Copyright 1996 Hitachi.
35  */
36 #ifndef _DtPsubUtilI_h
37 #define _DtPsubUtilI_h
38
39 #include <Dt/Print.h>
40
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44
45 /*
46  * ------------------------------------------------------------------------
47  * Type Definitions
48  *
49  */
50 typedef enum {
51     DtPRINT_DEC_NET,
52     DtPRINT_TCP_IPC,
53     DtPRINT_NET_UNSPECIFIED
54 } DtPrintSpecNet;
55
56 /*
57  * ------------------------------------------------------------------------
58  * Private Function Declarations
59  *
60  */
61 String _DtPrintCreateXPrinterSpecifier(
62                                        String printer_name,
63                                        String host_name,
64                                        DtPrintSpecNet spec_net,
65                                        int display_num,
66                                        int screen_num);
67 void _DtPrintFreeStringList(
68                             String* string_list);
69 String _DtPrintGetDefaultXPrinterName(
70                                       Widget w);
71 String* _DtPrintGetXpPrinterList(
72                                  Widget w);
73 String* _DtPrintGetXpServerList(
74                                 Widget w);
75 void _DtPrintParseXDisplaySpecifier(
76                                     const String display_spec,
77                                     String* host_name,
78                                     DtPrintSpecNet* spec_net,
79                                     int* display_num,
80                                     int* screen_num);
81 void _DtPrintParseXPrinterSpecifier(
82                                     const String specifier,
83                                     String* printer_name,
84                                     String* display_spec);
85 XtEnum _DtPrintVerifyXPrinter(
86                               Widget w,
87                               String printer_spec,
88                               String* new_printer_spec,
89                               Display** new_display
90 #if 0 && defined(PRINTING_SUPPORTED)
91                               ,XPContext* new_context
92 #endif /* PRINTING_SUPPORTED */
93                               );
94
95
96
97 #ifdef __cplusplus
98 }  /* Close scope of 'extern "C"' declaration which encloses file. */
99 #endif
100
101 #endif /* _DtPsubUtilI_h */
102 /* DON'T ADD ANYTHING AFTER THIS #endif */