Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update FFI C declarations #506

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

benoit-pierre
Copy link
Contributor

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

  • 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
Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

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

Sounds great!

@Frenzie Frenzie merged commit bd3a8ed into koreader:master Aug 28, 2024
3 checks passed
@benoit-pierre benoit-pierre deleted the pr/update_ffi_c_declarations branch August 28, 2024 17:23
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