aboutsummaryrefslogtreecommitdiffstats
path: root/wg-dynamic-server.c
blob: a8e29247f1d8780239b8aeb61ed391dbe48759c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: MIT */
/*
 * Copyright (C) 2018 Wireguard LLC
 */

#include <stdlib.h>
#include <stdio.h>

const char *PROG_NAME;

/* TODO: break this function out into another file when it gets big */
static void setup_server(char *interface)
{
}

static void show_usage()
{
	fprintf(stderr, "Usage: %s <interface>\n\n", PROG_NAME);
}

int main(int argc, char *argv[])
{
	PROG_NAME = argv[0];

	if (argc == 1) {
		show_usage();
		return EXIT_FAILURE;
	}

	setup_server(argv[1]);

	return EXIT_SUCCESS;
}