PDGetCurrentResolution(3)

PDGetCurrentResolution - get current printing resolution

As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.

NAME
     PDGetCurrentResolution - get current printing resolution

SYNOPSIS
     #include <pod.h>

     int PDGetCurrentResolution(PDInfoStruct *info,
                                int *hresp, int *vresp);

DESCRIPTION
     PDGetCurrentResolution is a convenience function for determining the
     current printing resolution.

     Typically, printers have a single output resolution and the POD
     PDInfoStruct horizontal_resolution and vertical_resolution fields provide
     the printing resolution directly. However, certain printers allow
     switching between multiple output resolutions. For these printers the
     current resolution is determined by first parsing the PDStatusStruct
     printer_options field for the keyword CurrentRes. The value for this
     keyword will indicate the current horizontal and vertical resolutions. If
     the keyword is not found, the resolutions in the PDInfoStruct are used.
     The PDGetCurrentResolution function performs the above procedure to
     determine the current resolution.

RETURN VALUE
     PDGetCurrentResolution returns 0 upon successful execution. If an error
     occurs, the function returns -1 and sets PDerrno.

EXECUTION ERROR CODES
     PDGetCurrentResolution will fail under the following circumstances.

     PD_LIBERR_BAD_STRUCT     A NULL structure pointer has been specified.

SEE ALSO
     PDReadInfo(3), PDReadStatus(3), libpod(3)