michaelrsweet / pappl

PAPPL - Printer Application Framework
https://www.msweet.org/pappl
Apache License 2.0
307 stars 49 forks source link

WIP : PAPPL Scan API Integration #349

Open Kappuccino111 opened 6 months ago

Kappuccino111 commented 6 months ago

Actively updating for solving #130, #131 , #133 , #134.

Kappuccino111 commented 5 months ago

@michaelrsweet, the implementation is still a work in progress. All updates are regularly posted on the comments in #130

I have now pushed the scanner-accessors.c file. One doubt that I have is that papplSystemAddEvent() is pre-configured for printers, and hence passing a scanner object while using papplScannerResume() or papplScannerPause() creates warnings. Any ideas on how to proceed with this? For now, I am simply debugging to the terminal.

michaelrsweet commented 5 months ago

@michaelrsweet, the implementation is still a work in progress. All updates are regularly posted on the comments in #130

I have now pushed the scanner-accessors.c file. One doubt that I have is that papplSystemAddEvent() is pre-configured for printers, and hence passing a scanner object while using papplScannerResume() or papplScannerPause() creates warnings. Any ideas on how to proceed with this? For now, I am simply debugging to the terminal.

For now I would add a different version of papplSystemAddEvent that accepts the scanner pointer. Longer term we'll need to do something more coherent, of course, but for now a separate function will do just fine for a first implementation.

Kappuccino111 commented 2 months ago

@tillkamppeter https://github.com/michaelrsweet/pappl/pull/349/commits/40786982e029e9aeff4ecd7be182cc381b08503a updates the scanner-driver.c code.