1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
--- a/cngplp/src/load.c
+++ b/cngplp/src/load.c
@@ -29,6 +29,17 @@ GModule* g_module = NULL;
char pre_lib_name[MAX_PATH];
gboolean first_load = TRUE;
+void (*ShowPDLDialog)(const char* name, int print);
+gboolean (*InitPDLController)(GtkWidget* main_dlg, char *printer_name, const char* print_file, gboolean first_load);
+void (*UpdatePDLData)(int id, const char* value);
+void (*UpdatePDLDataInt)(int id, int value);
+void (*ClosePDLController)();
+void (*SavePDLPrinterData)();
+void (*PrintPDLFile)();
+char* (*GetPDLData)(int id);
+int (*GetPDLDataInt)(int id, int def);
+int (*ExecPDLJobMode)();
+
int LoadPDL(GladeXML* main_xml, const char* print_file)
{
GtkWidget* main_dlg = NULL;
--- a/cngplp/src/load.h
+++ b/cngplp/src/load.h
@@ -28,15 +28,15 @@
int LoadPDL(GladeXML* main_xml, const char* print_file);
void UnLoadPDL();
-void (*ShowPDLDialog)(const char* name, int print);
-gboolean (*InitPDLController)(GtkWidget* main_dlg, char *printer_name, const char* print_file, gboolean first_load);
-void (*UpdatePDLData)(int id, const char* value);
-void (*UpdatePDLDataInt)(int id, int value);
-void (*ClosePDLController)();
-void (*SavePDLPrinterData)();
-void (*PrintPDLFile)();
-char* (*GetPDLData)(int id);
-int (*GetPDLDataInt)(int id, int def);
-int (*ExecPDLJobMode)();
+extern void (*ShowPDLDialog)(const char* name, int print);
+extern gboolean (*InitPDLController)(GtkWidget* main_dlg, char *printer_name, const char* print_file, gboolean first_load);
+extern void (*UpdatePDLData)(int id, const char* value);
+extern void (*UpdatePDLDataInt)(int id, int value);
+extern void (*ClosePDLController)();
+extern void (*SavePDLPrinterData)();
+extern void (*PrintPDLFile)();
+extern char* (*GetPDLData)(int id);
+extern int (*GetPDLDataInt)(int id, int def);
+extern int (*ExecPDLJobMode)();
#endif
--- a/cngplp/src/mainwnd.c
+++ b/cngplp/src/mainwnd.c
@@ -82,6 +82,17 @@ static int g_stdout_fd;
static void SaveOptions();
static void LoadOptions();
+extern void (*ShowPDLDialog)(const char* name, int print);
+extern gboolean (*InitPDLController)(GtkWidget* main_dlg, char *printer_name, const char* print_file, gboolean first_load);
+extern void (*UpdatePDLData)(int id, const char* value);
+extern void (*UpdatePDLDataInt)(int id, int value);
+extern void (*ClosePDLController)();
+extern void (*SavePDLPrinterData)();
+extern void (*PrintPDLFile)();
+extern char* (*GetPDLData)(int id);
+extern int (*GetPDLDataInt)(int id, int def);
+extern int (*ExecPDLJobMode)();
+
void DisposeMainDlg()
{
int i = 0;
|