Add CUPS printing system bindings to c.s.j.p.unix#1718
Open
dbwiddis wants to merge 1 commit intojava-native-access:masterfrom
Open
Add CUPS printing system bindings to c.s.j.p.unix#1718dbwiddis wants to merge 1 commit intojava-native-access:masterfrom
dbwiddis wants to merge 1 commit intojava-native-access:masterfrom
Conversation
798d6b9 to
9730d3f
Compare
Closes java-native-access#1710 Add Cups interface providing JNA bindings for libcups, the Common UNIX Printing System library. Includes structures (CupsDest, CupsOption, CupsJob), printer state/type constants, job state constants, and functions for destination enumeration, job management, option handling, and server/user configuration.
9730d3f to
2e49a2e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
Cupsinterface toc.s.j.p.unixproviding JNA bindings for libcups, the Common UNIX Printing System library available on Linux, macOS, and other UNIX platforms.Structures
CupsDestcups_dest_tCupsOptioncups_option_tCupsJobcups_job_tFunctions
cupsGetDests/cupsGetDests2cupsFreeDestscupsGetDestcupsGetNamedDestcupsGetDefaultcupsGetOptioncupsAddOptioncupsFreeOptionscupsGetJobs2cupsFreeJobscupsCancelJobcupsServer/cupsSetServercupsUser/cupsSetUsercupsLastError/cupsLastErrorStringConstants
IPP_PRINTER_IDLE,IPP_PRINTER_PROCESSING,IPP_PRINTER_STOPPEDCUPS_PRINTER_CLASS,CUPS_PRINTER_COLOR,CUPS_PRINTER_DUPLEX, etc.IPP_JSTATE_PENDINGthroughIPP_JSTATE_COMPLETEDCUPS_WHICHJOBS_ALL,CUPS_WHICHJOBS_ACTIVE,CUPS_WHICHJOBS_COMPLETEDCloses #1710
Test Output
On my local mac with actual printers: