2009-03-13 18:43:16 +01:00
|
|
|
/*
|
2022-07-14 17:58:12 +02:00
|
|
|
* Copyright 2003-2022 The Music Player Daemon Project
|
2009-03-13 18:43:16 +01:00
|
|
|
* http://www.musicpd.org
|
2008-10-14 22:38:14 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2009-03-13 18:43:16 +01:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2008-10-14 22:38:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Support library for the "idle" command.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2013-01-09 08:36:52 +01:00
|
|
|
#include "Idle.hxx"
|
2016-03-05 20:14:12 +01:00
|
|
|
#include "Main.hxx"
|
|
|
|
#include "Instance.hxx"
|
2008-10-14 22:38:14 +02:00
|
|
|
|
2020-03-12 23:20:59 +01:00
|
|
|
#include <cassert>
|
2008-10-14 22:38:14 +02:00
|
|
|
|
|
|
|
void
|
|
|
|
idle_add(unsigned flags)
|
|
|
|
{
|
|
|
|
assert(flags != 0);
|
|
|
|
|
2019-05-29 21:22:25 +02:00
|
|
|
global_instance->EmitIdle(flags);
|
2008-10-14 22:38:14 +02:00
|
|
|
}
|