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 Classes
    Modifier and Type
    Interface
    Description
    static class 
    CUPS destination (printer) structure.

    Nested classes/interfaces inherited from interface com.sun.jna.Library

    com.sun.jna.Library.Handler
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final Cups
     
    static final int
     
    static final int
     
    static final int
     

    Fields 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 Type
    Method
    Description
    void
    cupsFreeDests(int num_dests, com.sun.jna.Pointer dests)
    Frees the memory used by a destination array.
    Gets the default printer name.
    int
    cupsGetDests(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

  • 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 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, com.sun.jna.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