Interface Cups
- All Superinterfaces:
com.sun.jna.Library
public interface Cups
extends com.sun.jna.Library
CUPS (Common Unix Printing System) library. This class should be considered non-API as it may be removed if/when its
code is incorporated into the JNA project.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classCUPS destination (printer) structure.Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final Cupsstatic final intstatic final intstatic final intFields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER -
Method Summary
Modifier and TypeMethodDescriptionvoidcupsFreeDests(int num_dests, com.sun.jna.Pointer dests) Frees the memory used by a destination array.Gets the default printer name.intcupsGetDests(com.sun.jna.ptr.PointerByReference dests) Gets all available destinations (printers and classes).cupsGetOption(String name, int num_options, com.sun.jna.Pointer options) Gets an option value from a destination.
-
Field Details
-
INSTANCE
-
IPP_PRINTER_IDLE
static final int IPP_PRINTER_IDLE- See Also:
-
IPP_PRINTER_PROCESSING
static final int IPP_PRINTER_PROCESSING- See Also:
-
IPP_PRINTER_STOPPED
static final int IPP_PRINTER_STOPPED- See Also:
-
CUPS_PRINTER_REMOTE
static final int CUPS_PRINTER_REMOTE- See Also:
-
-
Method Details
-
cupsGetDests
int cupsGetDests(com.sun.jna.ptr.PointerByReference dests) Gets all available destinations (printers and classes).- Parameters:
dests- Pointer to receive destination array- Returns:
- Number of destinations
-
cupsFreeDests
void cupsFreeDests(int num_dests, com.sun.jna.Pointer dests) Frees the memory used by a destination array.- Parameters:
num_dests- Number of destinationsdests- Pointer to destination array
-
cupsGetDefault
String cupsGetDefault()Gets the default printer name.- Returns:
- Default printer name or null if none
-
cupsGetOption
-