~registry/dolphin-emu/triforce

« back to all changes in this revision

Viewing changes to Source/Core/Core/Src/Host.h

  • Committer: Sérgio Benjamim
  • Date: 2015-02-13 05:54:40 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20150213055440-ey2rt3sjpy27km78
Dolphin Triforce branch from code.google, commit b957980 (4.0-315).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright 2013 Dolphin Emulator Project
 
2
// Licensed under GPLv2
 
3
// Refer to the license.txt file included.
 
4
 
 
5
#ifndef _HOST_H
 
6
#define _HOST_H
 
7
 
 
8
 
 
9
// Host - defines an interface for the emulator core to communicate back to the
 
10
// OS-specific layer
 
11
 
 
12
// The emulator core is abstracted from the OS using 2 interfaces:
 
13
// Common and Host.
 
14
 
 
15
// Common simply provides OS-neutral implementations of things like threads, mutexes,
 
16
// INI file manipulation, memory mapping, etc. 
 
17
 
 
18
// Host is an abstract interface for communicating things back to the host. The emulator
 
19
// core is treated as a library, not as a main program, because it is far easier to
 
20
// write GUI interfaces that control things than to squash GUI into some model that wasn't
 
21
// designed for it.
 
22
 
 
23
// The host can be just a command line app that opens a window, or a full blown debugger
 
24
// interface.
 
25
 
 
26
bool Host_RendererHasFocus();
 
27
void Host_ConnectWiimote(int wm_idx, bool connect);
 
28
bool Host_GetKeyState(int keycode);
 
29
void Host_GetRenderWindowSize(int& x, int& y, int& width, int& height);
 
30
void Host_Message(int Id);
 
31
void Host_NotifyMapLoaded();
 
32
void Host_RefreshDSPDebuggerWindow();
 
33
void Host_RequestRenderWindowSize(int width, int height);
 
34
void Host_SetStartupDebuggingParameters();
 
35
void Host_SetWiiMoteConnectionState(int _State);
 
36
void Host_ShowJitResults(unsigned int address);
 
37
void Host_SysMessage(const char *fmt, ...);
 
38
void Host_UpdateBreakPointView();
 
39
void Host_UpdateDisasmDialog();
 
40
void Host_UpdateLogDisplay();
 
41
void Host_UpdateMainFrame();
 
42
void Host_UpdateStatusBar(const char* _pText, int Filed = 0);
 
43
void Host_UpdateTitle(const char* title);
 
44
 
 
45
// TODO (neobrain): Remove these from host!
 
46
void* Host_GetInstance();
 
47
void* Host_GetRenderHandle();
 
48
 
 
49
#endif