summaryrefslogtreecommitdiff
path: root/src/libskabus/skabus_rpc_qlist.c
blob: c48d0e99322cbaa0250a99bb2f2ce3ce22f12233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* ISC license. */

#include <skalibs/uint64.h>
#include <skalibs/genalloc.h>

#include <skabus/rpc.h>

size_t skabus_rpc_qlist (skabus_rpc_t *a, uint64_t **list)
{
  uint64_t n = genalloc_len(uint64_t, &a->qlist) ;
  if (n) *list = genalloc_s(uint64_t, &a->qlist) ;
  return n ;
}