Main: allocate ConfigData on the stack

This commit is contained in:
Max Kellermann
2018-08-19 22:47:05 +02:00
parent afd0fe666a
commit 140aeea300
3 changed files with 22 additions and 15 deletions

View File

@@ -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