mirror of
https://github.com/qemu/qemu.git
synced 2024-12-23 12:13:32 +08:00
9af2398977
In my "build everything" tree, a change to the types in qapi-schema.json triggers a recompile of about 4800 out of 5100 objects. The previous commit split up qmp-commands.h, qmp-event.h, qmp-visit.h, qapi-types.h. Each of these headers still includes all its shards. Reduce compile time by including just the shards we actually need. To illustrate the benefits: adding a type to qapi/migration.json now recompiles some 2300 instead of 4800 objects. The next commit will improve it further. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20180211093607.27351-24-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> [eblake: rebase to master] Signed-off-by: Eric Blake <eblake@redhat.com>
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/*
|
|
* Virtual hardware watchdog.
|
|
*
|
|
* Copyright (C) 2009 Red Hat Inc.
|
|
*
|
|
* 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* By Richard W.M. Jones (rjones@redhat.com).
|
|
*/
|
|
|
|
#ifndef QEMU_WATCHDOG_H
|
|
#define QEMU_WATCHDOG_H
|
|
|
|
#include "qemu/queue.h"
|
|
#include "qapi/qapi-types-run-state.h"
|
|
|
|
struct WatchdogTimerModel {
|
|
QLIST_ENTRY(WatchdogTimerModel) entry;
|
|
|
|
/* Short name of the device - used to select it on the command line. */
|
|
const char *wdt_name;
|
|
/* Longer description (eg. manufacturer and full model number). */
|
|
const char *wdt_description;
|
|
};
|
|
typedef struct WatchdogTimerModel WatchdogTimerModel;
|
|
|
|
/* in hw/watchdog.c */
|
|
int select_watchdog(const char *p);
|
|
int select_watchdog_action(const char *action);
|
|
WatchdogAction get_watchdog_action(void);
|
|
void watchdog_add_model(WatchdogTimerModel *model);
|
|
void watchdog_perform_action(void);
|
|
|
|
#endif /* QEMU_WATCHDOG_H */
|