2023-03-06 14:42:04 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
// Copyright The Music Player Daemon Project
|
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
|
|
|
}
|