1
2#include "config.h"
3#include "sntptest.h"
4
5void
6sntptest(void) {
7	optionSaveState(&sntpOptions);
8}
9
10
11void
12sntptest_destroy(void) {
13	optionRestore(&sntpOptions);
14}
15
16
17void
18ActivateOption(const char* option, const char* argument) {
19
20	const int ARGV_SIZE = 4;
21
22	char* opts[ARGV_SIZE];
23
24	opts[0] = estrdup("sntpopts");
25	opts[1] = estrdup(option);
26	opts[2] = estrdup(argument);
27	opts[3] = estrdup("127.0.0.1");
28
29	optionProcess(&sntpOptions, COUNTOF(opts), opts);
30}
31
32