From c5fb1207b3c8a1791e8d4ea49e63af0facff398c Mon Sep 17 00:00:00 2001 From: Kory Prince Date: Tue, 4 May 2021 16:03:20 -0500 Subject: [PATCH 1/2] added tag type for PrinterName --- constants.go | 1 + 1 file changed, 1 insertion(+) diff --git a/constants.go b/constants.go index 500daeb..0f2eb16 100644 --- a/constants.go +++ b/constants.go @@ -399,6 +399,7 @@ var ( AttributePrinterInfo: TagText, AttributePrinterIsAcceptingJobs: TagBoolean, AttributePrinterIsShared: TagBoolean, + AttributePrinterName: TagName, AttributePrinterLocation: TagText, AttributePrinterResolution: TagResolution, AttributePrinterState: TagEnum, From eae6c44e9f628f80c0447a06095d35dfa98dbba5 Mon Sep 17 00:00:00 2001 From: Kory Prince Date: Tue, 4 May 2021 16:35:43 -0500 Subject: [PATCH 2/2] fix typo --- constants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/constants.go b/constants.go index 0f2eb16..2084a44 100644 --- a/constants.go +++ b/constants.go @@ -344,7 +344,7 @@ const ( AttributePrinterState = "printer-state" AttributeMemberNames = "member-names" AttributePrinterType = "printer-type" - AttributePrinterMarkAndModel = "printer-make-and-model" + AttributePrinterMakeAndModel = "printer-make-and-model" AttributePrinterStateMessage = "printer-state-message" AttributePrinterUriSupported = "printer-uri-supported" AttributeJobMediaProgress = "job-media-progress" @@ -357,7 +357,7 @@ const ( var ( DefaultClassAttributes = []string{AttributePrinterName, AttributeMemberNames} DefaultPrinterAttributes = []string{AttributePrinterName, AttributePrinterType, AttributePrinterLocation, AttributePrinterInfo, - AttributePrinterMarkAndModel, AttributePrinterState, AttributePrinterStateMessage, AttributePrinterStateReasons, + AttributePrinterMakeAndModel, AttributePrinterState, AttributePrinterStateMessage, AttributePrinterStateReasons, AttributePrinterUriSupported, AttributeDeviceURI, AttributePrinterIsShared} DefaultJobAttributes = []string{AttributeJobID, AttributeJobName, AttributePrinterURI, AttributeJobState, AttributeJobStateReason, AttributeJobHoldUntil, AttributeJobMediaProgress, AttributeJobKilobyteOctets, AttributeNumberOfDocuments, AttributeCopies,