1/*	$NetBSD: sntptest.c,v 1.2 2020/05/25 20:47:35 christos Exp $	*/
2
3
4#include "config.h"
5#include "ntp_stdlib.h"
6#include "sntp-opts.h"
7#include "sntptest.h"
8
9void
10sntptest(void) {
11	optionSaveState(&sntpOptions);
12}
13
14
15void
16sntptest_destroy(void) {
17	optionRestore(&sntpOptions);
18}
19
20
21void
22ActivateOption(const char* option, const char* argument) {
23
24	const int ARGV_SIZE = 4;
25
26	char* opts[ARGV_SIZE];
27
28	opts[0] = estrdup("sntpopts");
29	opts[1] = estrdup(option);
30	opts[2] = estrdup(argument);
31	opts[3] = estrdup("127.0.0.1");
32
33	optionProcess(&sntpOptions, ARGV_SIZE, opts);
34}
35
36