Add a clock method to update the time properties data set.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
0367bb5f1b
commit
1c4f99a0c3
5
clock.c
5
clock.c
|
@ -1096,6 +1096,11 @@ struct timePropertiesDS *clock_time_properties(struct clock *c)
|
|||
return &c->tds;
|
||||
}
|
||||
|
||||
void clock_update_time_properties(struct clock *c, struct timePropertiesDS tds)
|
||||
{
|
||||
c->tds = tds;
|
||||
}
|
||||
|
||||
static void handle_state_decision_event(struct clock *c)
|
||||
{
|
||||
struct foreign_clock *best = NULL, *fc;
|
||||
|
|
7
clock.h
7
clock.h
|
@ -215,6 +215,13 @@ void clock_sync_interval(struct clock *c, int n);
|
|||
*/
|
||||
struct timePropertiesDS *clock_time_properties(struct clock *c);
|
||||
|
||||
/**
|
||||
* Update a clock's time properties data set.
|
||||
* @param c The clock instance.
|
||||
* @param tds The new time properties data set for the clock.
|
||||
*/
|
||||
void clock_update_time_properties(struct clock *c, struct timePropertiesDS tds);
|
||||
|
||||
/**
|
||||
* Obtain a clock's description.
|
||||
* @param c The clock instance.
|
||||
|
|
Loading…
Reference in New Issue