Interface Cups

All Superinterfaces:
Library

public interface Cups extends 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.
  • Field Details

  • Method Details

    • cupsGetDests

      int cupsGetDests(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, Pointer dests)
      Frees the memory used by a destination array.
      Parameters:
      num_dests - Number of destinations
      dests - Pointer to destination array
    • cupsGetDefault

      String cupsGetDefault()
      Gets the default printer name.
      Returns:
      Default printer name or null if none
    • cupsGetOption

      String cupsGetOption(String name, int num_options, Pointer options)
      Gets an option value from a destination.
      Parameters:
      name - Option name
      num_options - Number of options
      options - Pointer to options array
      Returns:
      Option value or null if not found