Header cleanups and prep.

This commit is contained in:
Ben Vanik
2015-05-24 20:11:19 -07:00
parent 8ac1f61c64
commit 1104f8e687
13 changed files with 34 additions and 18 deletions

View File

@@ -12,12 +12,18 @@
#include <atomic>
#include "xenia/kernel/kernel_state.h"
#include "xenia/xbox.h"
namespace xe {
class Emulator;
class Memory;
} // namespace xe
namespace xe {
namespace kernel {
class KernelState;
// http://www.nirsoft.net/kernel_struct/vista/DISPATCHER_HEADER.html
typedef struct {
xe::be<uint32_t> type_flags;
@@ -43,9 +49,9 @@ class XObject {
XObject(KernelState* kernel_state, Type type);
virtual ~XObject();
Emulator* emulator() const { return kernel_state_->emulator_; }
KernelState* kernel_state() const { return kernel_state_; }
Memory* memory() const { return kernel_state_->memory(); }
Emulator* emulator() const;
KernelState* kernel_state() const;
Memory* memory() const;
Type type();
X_HANDLE handle() const;