diff options
Diffstat (limited to 'wg-dynamic-client.c')
-rw-r--r-- | wg-dynamic-client.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/wg-dynamic-client.c b/wg-dynamic-client.c index 87e3946..a8399ff 100644 --- a/wg-dynamic-client.c +++ b/wg-dynamic-client.c @@ -2,3 +2,32 @@ /* * 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 connect_to_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; + } + + connect_to_server(argv[1]); + + return EXIT_SUCCESS; +} |