Make the clock release method a public function.
Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
577d34facf
commit
40dc2e13ef
2
clock.c
2
clock.c
|
@ -85,7 +85,7 @@ static int cid_eq(struct ClockIdentity *a, struct ClockIdentity *b)
|
||||||
return 0 == memcmp(a, b, sizeof(*a));
|
return 0 == memcmp(a, b, sizeof(*a));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void clock_destroy(struct clock *c)
|
void clock_destroy(struct clock *c)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < c->nports; i++) {
|
for (i = 0; i < c->nports; i++) {
|
||||||
|
|
6
clock.h
6
clock.h
|
@ -77,6 +77,12 @@ struct clock *clock_create(int phc_index, struct interface *iface, int count,
|
||||||
*/
|
*/
|
||||||
struct dataset *clock_default_ds(struct clock *c);
|
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.
|
* Obtain the domain number from a clock's default data set.
|
||||||
* @param c The clock instance.
|
* @param c The clock instance.
|
||||||
|
|
Loading…
Reference in New Issue