summaryrefslogtreecommitdiff
path: root/src/libskabus/skabus_rpc_interface_unregister.c
blob: 793b95473a6fec42376406beb608ecf3ce4eca29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* ISC license. */

#include <errno.h>

#include <skalibs/tai.h>
#include <skalibs/skaclient.h>

#include <skabus/rpc.h>

int skabus_rpc_interface_unregister (skabus_rpc_t *a, uint32_t ifid, tain const *deadline, tain *stamp)
{
  skabus_rpc_interface_result_t r ;
  if (!skabus_rpc_interface_unregister_async(a, ifid, &r)) return 0 ;
  if (!skaclient_syncify(&a->connection, deadline, stamp)) return 0 ;
  if (r.err) return (errno = r.err, 0) ;
  return 1 ;
}