Frame: Remove callback function prototypes from header

Gets rid of more direct usages of the main_frame global, keeping the
callbacks internal to the frame itself.
This commit is contained in:
Lioncash
2017-04-03 05:39:48 -04:00
parent ee0e6fa09c
commit c457ee4995
6 changed files with 27 additions and 38 deletions

View File

@ -6,6 +6,7 @@
#pragma once
#include <functional>
#include <string>
#include <vector>
@ -61,6 +62,6 @@ void UndoLoadState();
void Flush();
// for calling back into UI code without introducing a dependency on it in core
typedef void (*CallbackFunc)(void);
void SetOnAfterLoadCallback(CallbackFunc callback);
using AfterLoadCallbackFunc = std::function<void()>;
void SetOnAfterLoadCallback(AfterLoadCallbackFunc callback);
}