android / android/ndk

[FR] update old APIs to use type-backed enums

Open
#1,741 1 comment 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

### Description

We've been doing this for new APIs, but we should go through all the old APIs and make sure that enums have backing types and are used explicitly in function decls.

Aside from improving IDE behavior and ABI checking, this helps languages like Rust: https://github.com/android/ndk/issues/1739#issuecomment-1199911248

Contributor guide

Open the contributing guide

Research direction

The issue covers old NDK APIs, enum declarations, and function declarations, but names no files, entry points, or tests. Start by locating legacy API declarations and comparing them with newer type-backed APIs; completion means all applicable old API enums have backing types and are used explicitly in function declarations.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
api, mobile-dev
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.