Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Brias
Copy link
Contributor

@Brias Brias commented Jul 25, 2025

Contribution description

This pull request aims to make the public API of RTRlib more consistent. The following has been implemented/changed:

  • To avoid name clashes and have a consistent API naming, every function, enum, struct, ... that is exported is prefixed with rtr_/RTR_.
  • int return types are changed to the pertinent enum type if applicable.
  • Change bool type to indicate the performed operation when notifying users about changes in the SPKI and PFX tables to specific enum type to improve readability and make the API specification stricter.

Testing procedure

Since the functionality hasn't changed, no new tests were added. The existing tests can be run to quickly check for regressions:

mkdir build && cd build
cmake ..
make 
ctest

Issues/PRs references

n/a

@Brias Brias requested a review from tanneberger July 25, 2025 10:55
@Brias Brias self-assigned this Jul 25, 2025
@Brias Brias force-pushed the api-consistency branch from cbf9ba3 to 4c7b877 Compare July 25, 2025 11:23
@waehlisch waehlisch requested a review from fho July 28, 2025 21:34
@tanneberger tanneberger mentioned this pull request Jul 24, 2025
14 tasks
@Brias Brias force-pushed the api-consistency branch from 4c7b877 to 3d1069b Compare July 29, 2025 14:17
@Brias Brias force-pushed the api-consistency branch from 3d1069b to 5a4299d Compare August 3, 2025 18:55
- To avoid name clashes and have a consistent API naming, every function,
  enum, struct, ... that is exported is prefixed with `rtr_`/`RTR_`.
- `int` return types are changed to the pertinent `enum` type if applicable.
- Change `bool` type to indicate the performed operation when notifying users
  about changes in the SPKI and PFX tables to specific `enum` type to improve
  readability and make the API specification stricter.
- Make names of validation functions consistent
@Brias Brias force-pushed the api-consistency branch from 5a4299d to 44d8276 Compare August 8, 2025 15:30
@tanneberger tanneberger merged commit f3d1cfa into master Aug 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants