X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fcollectors.c;h=4589f32985e60afd9ac9f781f55dc3c5d435557f;hb=212fe71c79ecb40059d01cbe6f218a5e57144c82;hp=f7cb1dbe4f23a5e791e23d63e134d5e6018ab07f;hpb=6bab37989b1b5e8981bee80e1fedef621799332c;p=openvswitch diff --git a/ofproto/collectors.c b/ofproto/collectors.c index f7cb1dbe..4589f329 100644 --- a/ofproto/collectors.c +++ b/ofproto/collectors.c @@ -121,3 +121,9 @@ collectors_send(const struct collectors *c, const void *payload, size_t n) } } } + +int +collectors_count(const struct collectors *c) +{ + return c->n_fds; +}