Make the clock release method a public function.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
master
Richard Cochran 2012-08-27 21:09:59 +02:00
parent 577d34facf
commit 40dc2e13ef
2 changed files with 7 additions and 1 deletions

View File

@ -85,7 +85,7 @@ static int cid_eq(struct ClockIdentity *a, struct ClockIdentity *b)
return 0 == memcmp(a, b, sizeof(*a));
}
static void clock_destroy(struct clock *c)
void clock_destroy(struct clock *c)
{
int i;
for (i = 0; i < c->nports; i++) {

View File

@ -77,6 +77,12 @@ struct clock *clock_create(int phc_index, struct interface *iface, int count,
*/
struct dataset *clock_default_ds(struct clock *c);
/**
* Free all of the resources associated with a clock.
* @param c The clock instance.
*/
void clock_destroy(struct clock *c);
/**
* Obtain the domain number from a clock's default data set.
* @param c The clock instance.