use new attribute name in default printer attributes

This commit is contained in:
Erwin Lejeune 2020-08-05 15:34:58 +02:00
parent 528615a9d7
commit cbbd7226c2
3 changed files with 24 additions and 2 deletions

17
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
"configurations": [
{
"browse": {
"databaseFilename": "",
"limitSymbolsToIncludedHeaders": true
},
"includePath": [
"/opt/ros/melodic/include/**",
"/home/erwin/catkin_ws/src/ros-xenomai-bridge/ros_nrt/reactive_navigation/include/**",
"/home/erwin/catkin_ws/src/ros-xenomai-bridge/ros_nrt/xddp_utilities/include/**",
"/usr/include/**"
],
"name": "ROS"
}
]
}

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"python.autoComplete.extraPaths": [
"/opt/ros/melodic/lib/python2.7/dist-packages"
]
}

View File

@ -325,7 +325,7 @@ const (
AttributePrinterInfo = "printer-info"
AttributePrinterLocation = "printer-location"
AttributePrinterName = "printer-name"
AttributePrinterStateReasons = "printer-state-reasons"
AttributePrinterStateReasons = "printer-state-reasons"
AttributeJobPrinterURI = "job-printer-uri"
AttributeMemberURIs = "member-uris"
AttributeDocumentNumber = "document-number"
@ -357,7 +357,7 @@ const (
var (
DefaultClassAttributes = []string{AttributePrinterName, AttributeMemberNames}
DefaultPrinterAttributes = []string{AttributePrinterName, AttributePrinterType, AttributePrinterLocation, AttributePrinterInfo,
AttributePrinterMarkAndModel, AttributePrinterState, AttributePrinterStateMessage, AttributePrinterStateReason,
AttributePrinterMarkAndModel, AttributePrinterState, AttributePrinterStateMessage, AttributePrinterStateReasons,
AttributePrinterUriSupported, AttributeDeviceURI, AttributePrinterIsShared}
DefaultJobAttributes = []string{AttributeJobID, AttributeJobName, AttributePrinterURI, AttributeJobState, AttributeJobStateReason,
AttributeJobHoldUntil, AttributeJobMediaProgress, AttributeJobKilobyteOctets, AttributeNumberOfDocuments, AttributeCopies,