Menu

#321 Move TRDP_TIMER_GRANULARITY to public API

2.0.3.0
closed
None
2020-08-21
2020-03-04
No

Could you consider the possibility to move the TRDP_TIMER_GRANULARITY (currently defined in trdp_private.h) into an header file of the public API?

Discussion

  • Bernd Löhr

    Bernd Löhr - 2020-03-04

    In principle, yes. In trdp_types.h?

     
  • Lorenzo Buzzi

    Lorenzo Buzzi - 2020-03-04

    I need it only to enforce a lower bound check on the "interval" value passed to tlp_publish(); I would like that this check remains valid even if I move from a library version to another and the actual granularity changes (as it happened when it moved from 10ms down to 5ms).

    I temporarily moved it into trdp_if_light.h but I belive trdp_types.h is ok, since it is public and I can include it.

    Another solution could be defining something like TRDP_INTERVAL_MIN (without moving away TRDP_TIMER_GRANULARITY).

     
  • Bernd Löhr

    Bernd Löhr - 2020-07-10
    • status: open --> pending
    • assigned_to: Bernd Löhr
    • Milestone: 2.1.0.0 --> 2.0.3.0
     
  • Bernd Löhr

    Bernd Löhr - 2020-07-10

    -> moved to trdp_types.h

     
  • Bernd Löhr

    Bernd Löhr - 2020-08-21
    • Status: pending --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB