Adds forwards declarations in headers and includes all headers in sources, even if they are found by transitive includes.
44 lines
871 B
C
44 lines
871 B
C
/* Copyright (c) 2021-2023 Barcelona Supercomputing Center (BSC)
|
|
* SPDX-License-Identifier: GPL-3.0-or-later */
|
|
|
|
#ifndef EMU_H
|
|
#define EMU_H
|
|
|
|
#include "bay.h"
|
|
#include "common.h"
|
|
#include "emu_args.h"
|
|
#include "emu_stat.h"
|
|
#include "model.h"
|
|
#include "player.h"
|
|
#include "recorder.h"
|
|
#include "system.h"
|
|
#include "trace.h"
|
|
|
|
struct emu {
|
|
struct bay bay;
|
|
|
|
struct emu_args args;
|
|
struct trace trace;
|
|
struct system system;
|
|
struct player player;
|
|
struct model model;
|
|
struct recorder recorder;
|
|
struct emu_stat stat;
|
|
|
|
int finished;
|
|
|
|
/* Quick access */
|
|
struct stream *stream;
|
|
struct emu_ev *ev;
|
|
struct thread *thread;
|
|
struct proc *proc;
|
|
struct loom *loom;
|
|
};
|
|
|
|
USE_RET int emu_init(struct emu *emu, int argc, char *argv[]);
|
|
USE_RET int emu_connect(struct emu *emu);
|
|
USE_RET int emu_step(struct emu *emu);
|
|
USE_RET int emu_finish(struct emu *emu);
|
|
|
|
#endif /* EMU_H */
|