Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / lib / DtPrint / PsubUtilI.h
1 /* $XConsortium: PsubUtilI.h /main/3 1996/08/12 18:41:41 cde-hp $ */
2 /*
3  * DtPrint/PsubUtilI.h
4  */
5 /*
6  * (c) Copyright 1996 Digital Equipment Corporation.
7  * (c) Copyright 1996 Hewlett-Packard Company.
8  * (c) Copyright 1996 International Business Machines Corp.
9  * (c) Copyright 1996 Sun Microsystems, Inc.
10  * (c) Copyright 1996 Novell, Inc. 
11  * (c) Copyright 1996 FUJITSU LIMITED.
12  * (c) Copyright 1996 Hitachi.
13  */
14 #ifndef _DtPsubUtilI_h
15 #define _DtPsubUtilI_h
16
17 #include <Dt/Print.h>
18
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22
23 /*
24  * ------------------------------------------------------------------------
25  * Type Definitions
26  *
27  */
28 typedef enum {
29     DtPRINT_DEC_NET,
30     DtPRINT_TCP_IPC,
31     DtPRINT_NET_UNSPECIFIED
32 } DtPrintSpecNet;
33
34 /*
35  * ------------------------------------------------------------------------
36  * Private Function Declarations
37  *
38  */
39 String _DtPrintCreateXPrinterSpecifier(
40                                        String printer_name,
41                                        String host_name,
42                                        DtPrintSpecNet spec_net,
43                                        int display_num,
44                                        int screen_num);
45 void _DtPrintFreeStringList(
46                             String* string_list);
47 String _DtPrintGetDefaultXPrinterName(
48                                       Widget w);
49 String* _DtPrintGetXpPrinterList(
50                                  Widget w);
51 String* _DtPrintGetXpServerList(
52                                 Widget w);
53 void _DtPrintParseXDisplaySpecifier(
54                                     const String display_spec,
55                                     String* host_name,
56                                     DtPrintSpecNet* spec_net,
57                                     int* display_num,
58                                     int* screen_num);
59 void _DtPrintParseXPrinterSpecifier(
60                                     const String specifier,
61                                     String* printer_name,
62                                     String* display_spec);
63 XtEnum _DtPrintVerifyXPrinter(
64                               Widget w,
65                               String printer_spec,
66                               String* new_printer_spec,
67                               Display** new_display,
68                               XPContext* new_context);
69
70
71
72 #ifdef __cplusplus
73 }  /* Close scope of 'extern "C"' declaration which encloses file. */
74 #endif
75
76 #endif /* _DtPsubUtilI_h */
77 /* DON'T ADD ANYTHING AFTER THIS #endif */