You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			26 lines
		
	
	
		
			433 B
		
	
	
	
		
			C++
		
	
			
		
		
	
	
			26 lines
		
	
	
		
			433 B
		
	
	
	
		
			C++
		
	
// SPDX-License-Identifier: GPL-2.0-or-later
 | 
						|
// Copyright The Music Player Daemon Project
 | 
						|
 | 
						|
#ifndef MPD_TEST_CONFIG_GLUE_HXX
 | 
						|
#define MPD_TEST_CONFIG_GLUE_HXX
 | 
						|
 | 
						|
#include "config/File.hxx"
 | 
						|
#include "config/Migrate.hxx"
 | 
						|
#include "config/Data.hxx"
 | 
						|
#include "fs/Path.hxx"
 | 
						|
 | 
						|
inline ConfigData
 | 
						|
AutoLoadConfigFile(Path path)
 | 
						|
{
 | 
						|
	ConfigData data;
 | 
						|
 | 
						|
	if (!path.IsNull()) {
 | 
						|
		ReadConfigFile(data, path);
 | 
						|
		Migrate(data);
 | 
						|
	}
 | 
						|
 | 
						|
	return data;
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |