Add a clock method to update the time properties data set.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2013-04-02 19:25:29 +02:00
parent 0367bb5f1b
commit 1c4f99a0c3
2 changed files with 12 additions and 0 deletions

View File

@ -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;

View File

@ -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.