2009-03-13 18:43:16 +01:00
|
|
|
/*
|
2018-10-31 17:54:59 +01:00
|
|
|
* Copyright 2003-2018 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
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
void
|
|
|
|
idle_add(unsigned flags)
|
|
|
|
{
|
|
|
|
assert(flags != 0);
|
|
|
|
|
2016-03-10 09:27:07 +01:00
|
|
|
instance->EmitIdle(flags);
|
2008-10-14 22:38:14 +02:00
|
|
|
}
|