summaryrefslogtreecommitdiff
path: root/src/CommandLine.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-19 22:47:05 +0200
committerMax Kellermann <max@musicpd.org>2018-08-19 23:08:23 +0200
commit140aeea3009c4eae22195a898821d11eecc45d66 (patch)
tree37f086abc696eda4db08da73e7051941ca72f565 /src/CommandLine.hxx
parentafd0fe666a354415a92725b12748daa68f1dc5e5 (diff)
Main: allocate ConfigData on the stack
Diffstat (limited to 'src/CommandLine.hxx')
-rw-r--r--src/CommandLine.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/CommandLine.hxx b/src/CommandLine.hxx
index 2db067988..1a64aa7ef 100644
--- a/src/CommandLine.hxx
+++ b/src/CommandLine.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright 2003-2017 The Music Player Daemon Project
+ * Copyright 2003-2018 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -20,6 +20,8 @@
#ifndef MPD_COMMAND_LINE_HXX
#define MPD_COMMAND_LINE_HXX
+struct ConfigData;
+
struct options {
bool kill = false;
bool daemon = true;
@@ -28,6 +30,7 @@ struct options {
};
void
-ParseCommandLine(int argc, char **argv, struct options &options);
+ParseCommandLine(int argc, char **argv, struct options &options,
+ ConfigData &config);
#endif