Skip to content

Support PageSnapshot() function#2247

Merged
Frenzie merged 6 commits into
koreader:masterfrom
dmalinovsky:patch-1
Jan 6, 2026
Merged

Support PageSnapshot() function#2247
Frenzie merged 6 commits into
koreader:masterfrom
dmalinovsky:patch-1

Conversation

@dmalinovsky

@dmalinovsky dmalinovsky commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

This function allows setting current page as the boot logo on Pocketbooks. See https://github.com/reuerendo/pocketbooktools.koplugin for a sample usage.

The function is defined in https://github.com/pocketbook/SDK_6.3.0/blob/dd8de463733a2bc0d53d1214b64734586fac427e/SDK-B288/usr/arm-obreey-linux-gnueabi/sysroot/usr/local/include/inkview.h#L2854.


This change is Reviewable

@Frenzie

Frenzie commented Jan 6, 2026

Copy link
Copy Markdown
Member

I assume that should also be added here. ;-)

cdecl_func(WiFiPower)
cdecl_func(adjustAreaDefault)

@dmalinovsky

Copy link
Copy Markdown
Contributor Author

Oops, my bad.

@benoit-pierre

Copy link
Copy Markdown
Member

See #2248 for updated instructions.

@dmalinovsky

Copy link
Copy Markdown
Contributor Author

See #2248 for updated instructions.

Is it correct now?

@benoit-pierre

Copy link
Copy Markdown
Member

Nope :P, after updating ffi-cdecl/inkview_decl.c, follow instructions at the top for re-generating ffi/inkview_h.lua.

@benoit-pierre

Copy link
Copy Markdown
Member

And please keep the cdecls alphabetically sorted.

@dmalinovsky

Copy link
Copy Markdown
Contributor Author

Done.

@Frenzie Frenzie merged commit af2c513 into koreader:master Jan 6, 2026
3 checks passed
@liskin

liskin commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@dmalinovsky fyi I opened koreader/koreader#15124 to potentially utilise this in upstream KOReader — seemed weird to do this in the pocketbooksync plugin when it's a simple PageSnapshot call in onSuspend :-)

@dmalinovsky

Copy link
Copy Markdown
Contributor Author

@liskin, nice, I'll have one less patch to apply this way! :)

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.

4 participants