From 31830dd4df457b0099bfcb80b9f1d7ad6f69e32b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Tue, 18 Aug 2020 01:07:51 -0700 Subject: [PATCH] native: Minor header cleanup. --- ext/native/net/resolve.h | 4 ---- ext/native/ui/ui_context.cpp | 1 + ext/native/ui/ui_context.h | 6 +++++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ext/native/net/resolve.h b/ext/native/net/resolve.h index 8cc9756392..882ed5c0d5 100644 --- a/ext/native/net/resolve.h +++ b/ext/native/net/resolve.h @@ -11,10 +11,6 @@ namespace net { void Init(); void Shutdown(); -// use free() to free the returned string. -char *DNSResolveTry(const char *host, const char **err); -char *DNSResolve(const char *host); - enum class DNSType { ANY = 0, IPV4 = 1, diff --git a/ext/native/ui/ui_context.cpp b/ext/native/ui/ui_context.cpp index 22cc79c24b..be30e861ca 100644 --- a/ext/native/ui/ui_context.cpp +++ b/ext/native/ui/ui_context.cpp @@ -12,6 +12,7 @@ #include "gfx_es2/draw_text.h" #include "Common/Log.h" +#include "UI/TextureUtil.h" UIContext::UIContext() { fontStyle_ = new UI::FontStyle(); diff --git a/ext/native/ui/ui_context.h b/ext/native/ui/ui_context.h index effc248136..b6d9dd3e43 100644 --- a/ext/native/ui/ui_context.h +++ b/ext/native/ui/ui_context.h @@ -1,12 +1,12 @@ #pragma once +#include #include #include "base/basictypes.h" #include "math/geom2d.h" #include "math/lin/vec3.h" #include "gfx/texture_atlas.h" -#include "UI/TextureUtil.h" // Everything you need to draw a UI collected into a single unit that can be passed around. // Everything forward declared so this header is safe everywhere. @@ -22,13 +22,17 @@ namespace Draw { } class Texture; +class ManagedTexture; class DrawBuffer; class TextDrawer; namespace UI { struct Drawable; + struct EventParams; struct Theme; struct FontStyle; + class Event; + class View; } class DrawBuffer;