summaryrefslogtreecommitdiff
path: root/other/bootstrap_daemon/src/command_line_arguments.h
diff options
context:
space:
mode:
Diffstat (limited to 'other/bootstrap_daemon/src/command_line_arguments.h')
-rw-r--r--other/bootstrap_daemon/src/command_line_arguments.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/other/bootstrap_daemon/src/command_line_arguments.h b/other/bootstrap_daemon/src/command_line_arguments.h
new file mode 100644
index 00000000..c73cd15e
--- /dev/null
+++ b/other/bootstrap_daemon/src/command_line_arguments.h
@@ -0,0 +1,42 @@
1/* command_line_arguments.h
2 *
3 * Tox DHT bootstrap daemon.
4 * Command line argument handling.
5 *
6 * Copyright (C) 2015-2016 Tox project All Rights Reserved.
7 *
8 * This file is part of Tox.
9 *
10 * Tox is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * Tox is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
22 *
23 */
24
25#ifndef COMMAND_LINE_ARGUMENTS_H
26#define COMMAND_LINE_ARGUMENTS_H
27
28#include "log.h"
29
30/**
31 * Handles command line arguments, setting cfg_file_path and log_backend.
32 * Terminates the application if incorrect arguments are specified.
33 *
34 * @param argc Argc passed into main().
35 * @param argv Argv passed into main().
36 * @param cfg_file_path Sets to the provided by the user config file path.
37 * @param log_backend Sets to the provided by the user log backend option.
38 * @param run_in_foreground Sets to the provided by the user foreground option.
39 */
40void handle_command_line_arguments(int argc, char *argv[], char **cfg_file_path, LOG_BACKEND *log_backend, bool *run_in_foreground);
41
42#endif // COMMAND_LINE_ARGUMENTS_H