Skip to content

Improve API documentation in raster.h and filter.h#123

Open
n0y0nD wants to merge 2 commits intoOpenPrinting:masterfrom
n0y0nD:improve-docs
Open

Improve API documentation in raster.h and filter.h#123
n0y0nD wants to merge 2 commits intoOpenPrinting:masterfrom
n0y0nD:improve-docs

Conversation

@n0y0nD
Copy link
Copy Markdown
Contributor

@n0y0nD n0y0nD commented Feb 20, 2026

This PR improves and cleans up the public API documentation in
raster.h and filter.h.

I reorganized and structured the documentation comments above
the relevant function prototypes, clarified parameter and return
descriptions, and made the formatting more consistent with the
documentation style used in CUPS.

This is part of the ongoing work for issue #54 .

//
// System V interface script:
// https://www.ibm.com/docs/en/aix/7.2?topic=configuration-printer-interface-scripts

Copy link
Copy Markdown
Member

@tillkamppeter tillkamppeter Feb 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This information is still relevant, please do not remove it.

You can move it to the comment block at the top of the function though.

// rastertopwg. With Ghostscript supporting Apple Raster output
// (9.56.0 and newer), we actually produce Apple Raster and no further
// filter is required.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep this "Note: ..." section. You can move it to the comment block at the top of the function.

// actually produce if different from job's final output
// format, otherwise NULL to produce the job's final output
// format
// texttopdf_params: parameters for texttopdf
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this information is still relevant, please do not remove it.

You can move it to the comment block at the top of the function though.



//
// Prototypes...
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not remove "// Prototypes...".

Add an empty comment line before the comment you are adding here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants