mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-02 13:44:00 +00:00
Replace the BSD-3-Clause boiler plate license text with an SPDX tag. Fixes: #189 Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
37 lines
745 B
C
37 lines
745 B
C
/*
|
|
* Project Acrn
|
|
* Acrn-dm-monitor
|
|
*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*
|
|
*
|
|
* Author: TaoYuhong <yuhong.tao@intel.com>
|
|
*/
|
|
|
|
/* acrn-dm monitor APIS */
|
|
|
|
#ifndef MONITOR_H
|
|
#define MONITOR_H
|
|
|
|
int monitor_init(struct vmctx *ctx);
|
|
void monitor_close(void);
|
|
|
|
struct monitor_vm_ops {
|
|
int (*stop) (void *arg);
|
|
int (*resume) (void *arg);
|
|
int (*suspend) (void *arg);
|
|
int (*pause) (void *arg);
|
|
int (*unpause) (void *arg);
|
|
int (*query) (void *arg);
|
|
};
|
|
|
|
int monitor_register_vm_ops(struct monitor_vm_ops *ops, void *arg,
|
|
const char *name);
|
|
|
|
/* helper functions for vm_ops callback developer */
|
|
unsigned get_wakeup_reason(void);
|
|
int set_wakeup_timer(time_t t);
|
|
#endif
|