提交 8b0109ca 编写于 作者: Z zgu

8055705: Rename UnixPrintServiceLookup and Win32PrintServiceLookup as a platform neutral class name

Reviewed-by: andrew
上级 11007a14
...@@ -195,9 +195,9 @@ OUT_SERVICES_FILES := $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/, \ ...@@ -195,9 +195,9 @@ OUT_SERVICES_FILES := $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/, \
$(shell $(PRINTF) "$(SRC_SERVICES_FILES)\n" | $(SED) -e 's|/[^ ]*/META-INF/services/||g')) $(shell $(PRINTF) "$(SRC_SERVICES_FILES)\n" | $(SED) -e 's|/[^ ]*/META-INF/services/||g'))
OUT_SERVICES_FILES_COLON := $(addsuffix :, $(OUT_SERVICES_FILES)) OUT_SERVICES_FILES_COLON := $(addsuffix :, $(OUT_SERVICES_FILES))
# Exception handling for print services with no META-INF directory # Exception handling for print services with no META-INF directory
SRC_SERVICES_FILES_PRINT = $(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes/sun/print/services/*) SRC_SERVICES_FILES_PRINT = $(wildcard $(JDK_TOPDIR)/src/share/classes/sun/print/services/*)
OUT_SERVICES_FILES_PRINT = $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/, \ OUT_SERVICES_FILES_PRINT = $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/, \
$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes/sun/print/services/%, %, \ $(patsubst $(JDK_TOPDIR)/src/share/classes/sun/print/services/%, %, \
$(SRC_SERVICES_FILES_PRINT))) $(SRC_SERVICES_FILES_PRINT)))
OUT_SERVICES_FILES_PRINT_COLON = $(addsuffix :, $(OUT_SERVICES_FILES_PRINT)) OUT_SERVICES_FILES_PRINT_COLON = $(addsuffix :, $(OUT_SERVICES_FILES_PRINT))
RULES_SERVICES_PRINT = $(join $(OUT_SERVICES_FILES_PRINT_COLON), $(SRC_SERVICES_FILES_PRINT)) RULES_SERVICES_PRINT = $(join $(OUT_SERVICES_FILES_PRINT_COLON), $(SRC_SERVICES_FILES_PRINT))
......
# Provider for Java Print Service # Provider for Java Print Service
sun.print.Win32PrintServiceLookup sun.print.PrintServiceLookupProvider
...@@ -318,8 +318,8 @@ public class CUPSPrinter { ...@@ -318,8 +318,8 @@ public class CUPSPrinter {
* reported, exec lpstat -d which has all the Apple * reported, exec lpstat -d which has all the Apple
* special behaviour for this built in. * special behaviour for this built in.
*/ */
if (UnixPrintServiceLookup.isMac()) { if (PrintServiceLookupProvider.isMac()) {
printerInfo[0] = UnixPrintServiceLookup. printerInfo[0] = PrintServiceLookupProvider.
getDefaultPrinterNameSysV(); getDefaultPrinterNameSysV();
printerInfo[1] = null; printerInfo[1] = null;
return (String[])printerInfo.clone(); return (String[])printerInfo.clone();
......
...@@ -1042,7 +1042,7 @@ public class IPPPrintService implements PrintService, SunPrinterJobService { ...@@ -1042,7 +1042,7 @@ public class IPPPrintService implements PrintService, SunPrinterJobService {
setting like collation. Therefore, we temporarily exclude setting like collation. Therefore, we temporarily exclude
Linux. Linux.
*/ */
if (!UnixPrintServiceLookup.isLinux()) { if (!PrintServiceLookupProvider.isLinux()) {
catList.add(SheetCollate.class); catList.add(SheetCollate.class);
} }
} }
...@@ -1586,7 +1586,7 @@ public class IPPPrintService implements PrintService, SunPrinterJobService { ...@@ -1586,7 +1586,7 @@ public class IPPPrintService implements PrintService, SunPrinterJobService {
* Mac is using printer-info IPP attribute for its human-readable printer * Mac is using printer-info IPP attribute for its human-readable printer
* name and is also the identifier used in NSPrintInfo:setPrinter. * name and is also the identifier used in NSPrintInfo:setPrinter.
*/ */
if (UnixPrintServiceLookup.isMac()) { if (PrintServiceLookupProvider.isMac()) {
PrintServiceAttributeSet psaSet = this.getAttributes(); PrintServiceAttributeSet psaSet = this.getAttributes();
if (psaSet != null) { if (psaSet != null) {
PrinterInfo pName = (PrinterInfo)psaSet.get(PrinterInfo.class); PrinterInfo pName = (PrinterInfo)psaSet.get(PrinterInfo.class);
......
...@@ -58,7 +58,7 @@ import java.nio.file.Files; ...@@ -58,7 +58,7 @@ import java.nio.file.Files;
* Remind: This class uses solaris commands. We also need a linux * Remind: This class uses solaris commands. We also need a linux
* version * version
*/ */
public class UnixPrintServiceLookup extends PrintServiceLookup public class PrintServiceLookupProvider extends PrintServiceLookup
implements BackgroundServiceLookup, Runnable { implements BackgroundServiceLookup, Runnable {
/* Remind: the current implementation is static, as its assumed /* Remind: the current implementation is static, as its assumed
...@@ -70,7 +70,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup ...@@ -70,7 +70,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup
private PrintService defaultPrintService; private PrintService defaultPrintService;
private PrintService[] printServices; /* includes the default printer */ private PrintService[] printServices; /* includes the default printer */
private Vector lookupListeners = null; private Vector lookupListeners = null;
private static String debugPrefix = "UnixPrintServiceLookup>> "; private static String debugPrefix = "PrintServiceLookupProvider>> ";
private static boolean pollServices = true; private static boolean pollServices = true;
private static final int DEFAULT_MINREFRESH = 120; // 2 minutes private static final int DEFAULT_MINREFRESH = 120; // 2 minutes
private static int minRefreshTime = DEFAULT_MINREFRESH; private static int minRefreshTime = DEFAULT_MINREFRESH;
...@@ -208,7 +208,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup ...@@ -208,7 +208,7 @@ public class UnixPrintServiceLookup extends PrintServiceLookup
} }
public UnixPrintServiceLookup() { public PrintServiceLookupProvider() {
// start the printer listener thread // start the printer listener thread
if (pollServices) { if (pollServices) {
PrinterChangeListener thr = new PrinterChangeListener(); PrinterChangeListener thr = new PrinterChangeListener();
......
...@@ -122,7 +122,7 @@ public class UnixPrintJob implements CancelablePrintJob { ...@@ -122,7 +122,7 @@ public class UnixPrintJob implements CancelablePrintJob {
UnixPrintJob(PrintService service) { UnixPrintJob(PrintService service) {
this.service = service; this.service = service;
mDestination = service.getName(); mDestination = service.getName();
if (UnixPrintServiceLookup.isMac()) { if (PrintServiceLookupProvider.isMac()) {
mDestination = ((IPPPrintService)service).getDest(); mDestination = ((IPPPrintService)service).getDest();
} }
mDestType = UnixPrintJob.DESTPRINTER; mDestType = UnixPrintJob.DESTPRINTER;
...@@ -873,7 +873,7 @@ public class UnixPrintJob implements CancelablePrintJob { ...@@ -873,7 +873,7 @@ public class UnixPrintJob implements CancelablePrintJob {
pFlags |= NOSHEET; pFlags |= NOSHEET;
ncomps+=1; ncomps+=1;
} }
if (UnixPrintServiceLookup.osname.equals("SunOS")) { if (PrintServiceLookupProvider.osname.equals("SunOS")) {
ncomps+=1; // lp uses 1 more arg than lpr (make a copy) ncomps+=1; // lp uses 1 more arg than lpr (make a copy)
execCmd = new String[ncomps]; execCmd = new String[ncomps];
execCmd[n++] = "/usr/bin/lp"; execCmd[n++] = "/usr/bin/lp";
......
...@@ -220,7 +220,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -220,7 +220,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsSysV() { private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsSysV() {
String command = "/usr/bin/lpstat -a " + printer; String command = "/usr/bin/lpstat -a " + printer;
String results[]= UnixPrintServiceLookup.execCmd(command); String results[]= PrintServiceLookupProvider.execCmd(command);
if (results != null && results.length > 0) { if (results != null && results.length > 0) {
if (results[0].startsWith(printer + " accepting requests")) { if (results[0].startsWith(printer + " accepting requests")) {
...@@ -244,20 +244,20 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -244,20 +244,20 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
} }
private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsBSD() { private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsBSD() {
if (UnixPrintServiceLookup.cmdIndex == if (PrintServiceLookupProvider.cmdIndex ==
UnixPrintServiceLookup.UNINITIALIZED) { PrintServiceLookupProvider.UNINITIALIZED) {
UnixPrintServiceLookup.cmdIndex = PrintServiceLookupProvider.cmdIndex =
UnixPrintServiceLookup.getBSDCommandIndex(); PrintServiceLookupProvider.getBSDCommandIndex();
} }
String command = "/usr/sbin/lpc status " + printer String command = "/usr/sbin/lpc status " + printer
+ lpcStatusCom[UnixPrintServiceLookup.cmdIndex]; + lpcStatusCom[PrintServiceLookupProvider.cmdIndex];
String results[]= UnixPrintServiceLookup.execCmd(command); String results[]= PrintServiceLookupProvider.execCmd(command);
if (results != null && results.length > 0) { if (results != null && results.length > 0) {
if (UnixPrintServiceLookup.cmdIndex == if (PrintServiceLookupProvider.cmdIndex ==
UnixPrintServiceLookup.BSD_LPD_NG) { PrintServiceLookupProvider.BSD_LPD_NG) {
if (results[0].startsWith("enabled enabled")) { if (results[0].startsWith("enabled enabled")) {
return PrinterIsAcceptingJobs.ACCEPTING_JOBS ; return PrinterIsAcceptingJobs.ACCEPTING_JOBS ;
} }
...@@ -276,7 +276,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -276,7 +276,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
// Filter the list of possible AIX Printers and remove header lines // Filter the list of possible AIX Printers and remove header lines
// and extra lines which have been added for remote printers. // and extra lines which have been added for remote printers.
// 'protected' because this method is also used from UnixPrintServiceLookup. // 'protected' because this method is also used from PrintServiceLookupProvider.
protected static String[] filterPrinterNamesAIX(String[] posPrinters) { protected static String[] filterPrinterNamesAIX(String[] posPrinters) {
ArrayList printers = new ArrayList(); ArrayList printers = new ArrayList();
String [] splitPart; String [] splitPart;
...@@ -301,7 +301,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -301,7 +301,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsAIX() { private PrinterIsAcceptingJobs getPrinterIsAcceptingJobsAIX() {
// On AIX there should not be a blank after '-a'. // On AIX there should not be a blank after '-a'.
String command = "/usr/bin/lpstat -a" + printer; String command = "/usr/bin/lpstat -a" + printer;
String results[]= UnixPrintServiceLookup.execCmd(command); String results[]= PrintServiceLookupProvider.execCmd(command);
// Remove headers and bogus entries added by remote printers. // Remove headers and bogus entries added by remote printers.
results = filterPrinterNamesAIX(results); results = filterPrinterNamesAIX(results);
...@@ -320,11 +320,11 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -320,11 +320,11 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
} }
private PrinterIsAcceptingJobs getPrinterIsAcceptingJobs() { private PrinterIsAcceptingJobs getPrinterIsAcceptingJobs() {
if (UnixPrintServiceLookup.isSysV()) { if (PrintServiceLookupProvider.isSysV()) {
return getPrinterIsAcceptingJobsSysV(); return getPrinterIsAcceptingJobsSysV();
} else if (UnixPrintServiceLookup.isBSD()) { } else if (PrintServiceLookupProvider.isBSD()) {
return getPrinterIsAcceptingJobsBSD(); return getPrinterIsAcceptingJobsBSD();
} else if (UnixPrintServiceLookup.isAIX()) { } else if (PrintServiceLookupProvider.isAIX()) {
return getPrinterIsAcceptingJobsAIX(); return getPrinterIsAcceptingJobsAIX();
} else { } else {
return PrinterIsAcceptingJobs.ACCEPTING_JOBS; return PrinterIsAcceptingJobs.ACCEPTING_JOBS;
...@@ -351,29 +351,29 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -351,29 +351,29 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
private QueuedJobCount getQueuedJobCountSysV() { private QueuedJobCount getQueuedJobCountSysV() {
String command = "/usr/bin/lpstat -R " + printer; String command = "/usr/bin/lpstat -R " + printer;
String results[]= UnixPrintServiceLookup.execCmd(command); String results[]= PrintServiceLookupProvider.execCmd(command);
int qlen = (results == null) ? 0 : results.length; int qlen = (results == null) ? 0 : results.length;
return new QueuedJobCount(qlen); return new QueuedJobCount(qlen);
} }
private QueuedJobCount getQueuedJobCountBSD() { private QueuedJobCount getQueuedJobCountBSD() {
if (UnixPrintServiceLookup.cmdIndex == if (PrintServiceLookupProvider.cmdIndex ==
UnixPrintServiceLookup.UNINITIALIZED) { PrintServiceLookupProvider.UNINITIALIZED) {
UnixPrintServiceLookup.cmdIndex = PrintServiceLookupProvider.cmdIndex =
UnixPrintServiceLookup.getBSDCommandIndex(); PrintServiceLookupProvider.getBSDCommandIndex();
} }
int qlen = 0; int qlen = 0;
String command = "/usr/sbin/lpc status " + printer String command = "/usr/sbin/lpc status " + printer
+ lpcQueueCom[UnixPrintServiceLookup.cmdIndex]; + lpcQueueCom[PrintServiceLookupProvider.cmdIndex];
String results[] = UnixPrintServiceLookup.execCmd(command); String results[] = PrintServiceLookupProvider.execCmd(command);
if (results != null && results.length > 0) { if (results != null && results.length > 0) {
String queued; String queued;
if (UnixPrintServiceLookup.cmdIndex == if (PrintServiceLookupProvider.cmdIndex ==
UnixPrintServiceLookup.BSD_LPD_NG) { PrintServiceLookupProvider.BSD_LPD_NG) {
queued = results[0]; queued = results[0];
} else { } else {
queued = results[3].trim(); queued = results[3].trim();
...@@ -396,7 +396,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -396,7 +396,7 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
private QueuedJobCount getQueuedJobCountAIX() { private QueuedJobCount getQueuedJobCountAIX() {
// On AIX there should not be a blank after '-a'. // On AIX there should not be a blank after '-a'.
String command = "/usr/bin/lpstat -a" + printer; String command = "/usr/bin/lpstat -a" + printer;
String results[]= UnixPrintServiceLookup.execCmd(command); String results[]= PrintServiceLookupProvider.execCmd(command);
// Remove headers and bogus entries added by remote printers. // Remove headers and bogus entries added by remote printers.
results = filterPrinterNamesAIX(results); results = filterPrinterNamesAIX(results);
...@@ -413,11 +413,11 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -413,11 +413,11 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
} }
private QueuedJobCount getQueuedJobCount() { private QueuedJobCount getQueuedJobCount() {
if (UnixPrintServiceLookup.isSysV()) { if (PrintServiceLookupProvider.isSysV()) {
return getQueuedJobCountSysV(); return getQueuedJobCountSysV();
} else if (UnixPrintServiceLookup.isBSD()) { } else if (PrintServiceLookupProvider.isBSD()) {
return getQueuedJobCountBSD(); return getQueuedJobCountBSD();
} else if (UnixPrintServiceLookup.isAIX()) { } else if (PrintServiceLookupProvider.isAIX()) {
return getQueuedJobCountAIX(); return getQueuedJobCountAIX();
} else { } else {
return new QueuedJobCount(0); return new QueuedJobCount(0);
...@@ -468,9 +468,9 @@ public class UnixPrintService implements PrintService, AttributeUpdater, ...@@ -468,9 +468,9 @@ public class UnixPrintService implements PrintService, AttributeUpdater,
} }
private PrintServiceAttributeSet getDynamicAttributes() { private PrintServiceAttributeSet getDynamicAttributes() {
if (UnixPrintServiceLookup.isSysV()) { if (PrintServiceLookupProvider.isSysV()) {
return getSysVServiceAttributes(); return getSysVServiceAttributes();
} else if (UnixPrintServiceLookup.isAIX()) { } else if (PrintServiceLookupProvider.isAIX()) {
return getAIXServiceAttributes(); return getAIXServiceAttributes();
} else { } else {
return getBSDServiceAttributes(); return getBSDServiceAttributes();
......
# Provider for Java Print Service
sun.print.UnixPrintServiceLookup
...@@ -93,7 +93,7 @@ import sun.print.SunAlternateMedia; ...@@ -93,7 +93,7 @@ import sun.print.SunAlternateMedia;
import sun.print.SunPageSelection; import sun.print.SunPageSelection;
import sun.print.Win32MediaTray; import sun.print.Win32MediaTray;
import sun.print.Win32PrintService; import sun.print.Win32PrintService;
import sun.print.Win32PrintServiceLookup; import sun.print.PrintServiceLookupProvider;
import sun.print.ServiceDialog; import sun.print.ServiceDialog;
import sun.print.DialogOwner; import sun.print.DialogOwner;
...@@ -454,7 +454,7 @@ public final class WPrinterJob extends RasterPrinterJob ...@@ -454,7 +454,7 @@ public final class WPrinterJob extends RasterPrinterJob
// native printer is different ! // native printer is different !
// we update the current PrintService // we update the current PrintService
try { try {
setPrintService(Win32PrintServiceLookup. setPrintService(PrintServiceLookupProvider.
getWin32PrintLUS(). getWin32PrintLUS().
getPrintServiceByName(printerName)); getPrintServiceByName(printerName));
} catch (PrinterException e) { } catch (PrinterException e) {
...@@ -628,7 +628,7 @@ public final class WPrinterJob extends RasterPrinterJob ...@@ -628,7 +628,7 @@ public final class WPrinterJob extends RasterPrinterJob
String printerName = getNativePrintService(); String printerName = getNativePrintService();
if (printerName != null) { if (printerName != null) {
myService = Win32PrintServiceLookup.getWin32PrintLUS(). myService = PrintServiceLookupProvider.getWin32PrintLUS().
getPrintServiceByName(printerName); getPrintServiceByName(printerName);
// no need to call setNativePrintService as this name is // no need to call setNativePrintService as this name is
// currently set in native // currently set in native
......
...@@ -47,7 +47,7 @@ import javax.print.attribute.PrintServiceAttribute; ...@@ -47,7 +47,7 @@ import javax.print.attribute.PrintServiceAttribute;
import javax.print.attribute.PrintServiceAttributeSet; import javax.print.attribute.PrintServiceAttributeSet;
import javax.print.attribute.standard.PrinterName; import javax.print.attribute.standard.PrinterName;
public class Win32PrintServiceLookup extends PrintServiceLookup { public class PrintServiceLookupProvider extends PrintServiceLookup {
private String defaultPrinter; private String defaultPrinter;
private PrintService defaultPrintService; private PrintService defaultPrintService;
...@@ -70,10 +70,10 @@ public class Win32PrintServiceLookup extends PrintServiceLookup { ...@@ -70,10 +70,10 @@ public class Win32PrintServiceLookup extends PrintServiceLookup {
* javax.print.PrintServiceLookup.defaultPrintService() so that the * javax.print.PrintServiceLookup.defaultPrintService() so that the
* same instance is stored there. * same instance is stored there.
*/ */
private static Win32PrintServiceLookup win32PrintLUS; private static PrintServiceLookupProvider win32PrintLUS;
/* Think carefully before calling this. Preferably don't call it. */ /* Think carefully before calling this. Preferably don't call it. */
public static Win32PrintServiceLookup getWin32PrintLUS() { public static PrintServiceLookupProvider getWin32PrintLUS() {
if (win32PrintLUS == null) { if (win32PrintLUS == null) {
/* This call is internally synchronized. /* This call is internally synchronized.
* When it returns an instance of this class will have * When it returns an instance of this class will have
...@@ -84,7 +84,7 @@ public class Win32PrintServiceLookup extends PrintServiceLookup { ...@@ -84,7 +84,7 @@ public class Win32PrintServiceLookup extends PrintServiceLookup {
return win32PrintLUS; return win32PrintLUS;
} }
public Win32PrintServiceLookup() { public PrintServiceLookupProvider() {
if (win32PrintLUS == null) { if (win32PrintLUS == null) {
win32PrintLUS = this; win32PrintLUS = this;
......
# Providers for Java 2D/JPS Stream print services.
sun.print.PSStreamPrinterFactory
...@@ -68,7 +68,7 @@ static BOOL IsSupportedLevel(HANDLE hPrinter, DWORD dwLevel) { ...@@ -68,7 +68,7 @@ static BOOL IsSupportedLevel(HANDLE hPrinter, DWORD dwLevel) {
extern "C" { extern "C" {
JNIEXPORT jstring JNICALL JNIEXPORT jstring JNICALL
Java_sun_print_Win32PrintServiceLookup_getDefaultPrinterName(JNIEnv *env, Java_sun_print_PrintServiceLookupProvider_getDefaultPrinterName(JNIEnv *env,
jobject peer) jobject peer)
{ {
TRY; TRY;
...@@ -119,7 +119,7 @@ Java_sun_print_Win32PrintServiceLookup_getDefaultPrinterName(JNIEnv *env, ...@@ -119,7 +119,7 @@ Java_sun_print_Win32PrintServiceLookup_getDefaultPrinterName(JNIEnv *env,
JNIEXPORT jobjectArray JNICALL JNIEXPORT jobjectArray JNICALL
Java_sun_print_Win32PrintServiceLookup_getAllPrinterNames(JNIEnv *env, Java_sun_print_PrintServiceLookupProvider_getAllPrinterNames(JNIEnv *env,
jobject peer) jobject peer)
{ {
TRY; TRY;
...@@ -176,7 +176,7 @@ Java_sun_print_Win32PrintServiceLookup_getAllPrinterNames(JNIEnv *env, ...@@ -176,7 +176,7 @@ Java_sun_print_Win32PrintServiceLookup_getAllPrinterNames(JNIEnv *env,
JNIEXPORT jlong JNICALL JNIEXPORT jlong JNICALL
Java_sun_print_Win32PrintServiceLookup_notifyFirstPrinterChange(JNIEnv *env, Java_sun_print_PrintServiceLookupProvider_notifyFirstPrinterChange(JNIEnv *env,
jobject peer, jobject peer,
jstring printer) { jstring printer) {
HANDLE hPrinter; HANDLE hPrinter;
...@@ -210,7 +210,7 @@ Java_sun_print_Win32PrintServiceLookup_notifyFirstPrinterChange(JNIEnv *env, ...@@ -210,7 +210,7 @@ Java_sun_print_Win32PrintServiceLookup_notifyFirstPrinterChange(JNIEnv *env,
JNIEXPORT void JNICALL JNIEXPORT void JNICALL
Java_sun_print_Win32PrintServiceLookup_notifyClosePrinterChange(JNIEnv *env, Java_sun_print_PrintServiceLookupProvider_notifyClosePrinterChange(JNIEnv *env,
jobject peer, jobject peer,
jlong chgObject) { jlong chgObject) {
FindClosePrinterChangeNotification((HANDLE)chgObject); FindClosePrinterChangeNotification((HANDLE)chgObject);
...@@ -218,7 +218,7 @@ Java_sun_print_Win32PrintServiceLookup_notifyClosePrinterChange(JNIEnv *env, ...@@ -218,7 +218,7 @@ Java_sun_print_Win32PrintServiceLookup_notifyClosePrinterChange(JNIEnv *env,
JNIEXPORT jint JNICALL JNIEXPORT jint JNICALL
Java_sun_print_Win32PrintServiceLookup_notifyPrinterChange(JNIEnv *env, Java_sun_print_PrintServiceLookupProvider_notifyPrinterChange(JNIEnv *env,
jobject peer, jobject peer,
jlong chgObject) { jlong chgObject) {
DWORD dwChange; DWORD dwChange;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册