RTEMS | Draft: cpukit/age_verify: Add optional state-mandated age verification API (!1137)
Kinsey Moore (@opticron)
gitlab at rtems.org
Mon Mar 16 15:00:04 UTC 2026
Kinsey Moore started a new discussion on cpukit/include/rtems/age_verify.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145715
> +
> +#include <rtems.h>
> +
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
> +// These age brackets are arbitrary and can be changed as needed to comply with the law of different regions.
> +// Ultimately, I think that we could even just have a single "over 18" bracket, but this allows for a little more
> +// granularity if desired. Changes to the rtems_age_set_bracket logic in age_verify.c would be needed if this occurs.
> +typedef enum {
> + AGE_UNDER_13 = 0,
> + AGE_13_TO_18 = 1,
> + AGE_18_TO_24 = 2,
> + AGE_OVER_24 = 3
> +} rtems_age_bracket;
These categories are going to be in flux for a long time as everything gets hammered out. Either we need to try to keep up with the various required brackets and implement the bare minimum that will work for us everywhere or we need to provide an API to let the application developer define their own brackets for their particular use case.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1137#note_145715
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260316/7d4b2494/attachment-0001.htm>
More information about the bugs
mailing list