Skip to content

update FFI C declarations#506

Merged
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/update_ffi_c_declarations
Aug 28, 2024
Merged

update FFI C declarations#506
Frenzie merged 1 commit into
koreader:masterfrom
benoit-pierre:pr/update_ffi_c_declarations

Conversation

@benoit-pierre

@benoit-pierre benoit-pierre commented Aug 17, 2024

Copy link
Copy Markdown
Member
  • update & fix pthread_cond_t / pthread_mutex_t declarations: correct layout for 64bits
  • fix ANativeActivity declaration: add missing obbPath field (since Android 3 [HoneyComb])
  • cleanup, reduce differences with NDK headers

No real impact that I could see:

  • no android_app structure creation in Lua code, no access "below" the android_app.config field (before the "private" fields, including the pthread_cond_t / pthread_mutex_t one)
  • no ANativeActivity structure creation in Lua code, missing field was last

This change is Reviewable

- update & fix `pthread_cond_t` / `pthread_mutex_t` declarations:
  correct layout for 64bits
- fix `ANativeActivity` declaration: add missing `obbPath` field
  (since Android 3 [HoneyComb])
- cleanup, reduce differences with NDK headers

@Frenzie Frenzie left a comment

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.

Sounds great!

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.

3 participants