Skip to content

Long term plan to unify public zephyr APIs using ONE prefix #64627

@nashif

Description

@nashif

Introduction

Our APIs are all over the place with various prefixes and legacy conventions that do not have any consistency or real meaning. We do mix internal API prefixes with public APIs in many places and some have decvided to use z_ as the prefix for public APIs in some places, adding more fuel to the fire.

Proposal is to pick some prefix and enforce it for all new public C identifiers, over time, (scale of years) migrate all APIs to this prefix.

Ideally we want to release LTS4 with a completely overhauled and consistent API using one prefix for all APIs.

Problem description

see

Proposed change

Come up with a prefix and enforce it for all new APIs and APIs that need to be changed because of conflicts and misuse of private prefixes. Possible prefixes:

  • zphr_
  • zph_

Alternatives

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Architecture ReviewDiscussion in the Architecture WG requiredRFCRequest For Comments: want input from the community

    Type

    Projects

    Status

    No status

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions