blob: 828a42d4d9d3b99edcf619d4fbb9c02b33ca8844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
/* ISC license. */
#include <skalibs/genalloc.h>
#include <skabus/pub.h>
int skabus_pub_message_getnfds (skabus_pub_t const *a)
{
return genalloc_len(skabus_pub_cltinfo_t, &a->info) <= a->head ? -1 :
(int)genalloc_s(skabus_pub_cltinfo_t, &a->info)[a->head].nfds ;
}
|