blob: 007fa90626281bb7332f01bba95e747be321c497 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* ISC license. */
#include <nsss/nsss-switch.h>
#include "nsss-switch-internal.h"
int nsss_switch_query_start (char const *path, unsigned int what, unsigned int timeout, tain const *deadline, tain *stamp)
{
unsigned int held = nsss_switch_query.held ;
if (!nsss_switch_start(&nsss_switch_query, what, path, deadline, stamp)) return 0 ;
if (!held && !nsss_switch_set_timeout(&nsss_switch_query, timeout, deadline, stamp)) return 0 ;
return 1 ;
}
|