@@ -42,6 +42,7 @@ namespace DFHack::DFSDL
4242 */
4343 void cleanup ();
4444
45+ DFHACK_EXPORT void * lookup_DFSDL_Symbol (const char *name);
4546 DFHACK_EXPORT SDL_Surface* DFIMG_Load (const char * file);
4647 DFHACK_EXPORT SDL_Surface* DFSDL_CreateRGBSurface (uint32_t flags, int width, int height, int depth, uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask);
4748 DFHACK_EXPORT SDL_Surface* DFSDL_CreateRGBSurfaceFrom (void * pixels, int width, int height, int depth, int pitch, uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask);
@@ -73,39 +74,8 @@ namespace DFHack
7374 DFHACK_EXPORT std::string getClipboardTextCp437 ();
7475 DFHACK_EXPORT bool setClipboardTextCp437 (std::string text);
7576
76- /* *
77- * Call this when DFHack is being unloaded.
78- */
79- void cleanup ();
80-
81- DFHACK_EXPORT void * lookup_DFSDL_Symbol (const char *name);
82- DFHACK_EXPORT SDL_Surface * DFIMG_Load (const char *file);
83- DFHACK_EXPORT SDL_Surface * DFSDL_CreateRGBSurface (uint32_t flags, int width, int height, int depth, uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask);
84- DFHACK_EXPORT SDL_Surface * DFSDL_CreateRGBSurfaceFrom (void *pixels, int width, int height, int depth, int pitch, uint32_t Rmask, uint32_t Gmask, uint32_t Bmask, uint32_t Amask);
85- DFHACK_EXPORT int DFSDL_UpperBlit (SDL_Surface *src, const SDL_Rect *srcrect, SDL_Surface *dst, SDL_Rect *dstrect);
86- DFHACK_EXPORT SDL_Surface * DFSDL_ConvertSurface (SDL_Surface *src, const SDL_PixelFormat *fmt, uint32_t flags);
87- DFHACK_EXPORT void DFSDL_FreeSurface (SDL_Surface *surface);
88- // DFHACK_EXPORT int DFSDL_SemWait(SDL_sem *sem);
89- // DFHACK_EXPORT int DFSDL_SemPost(SDL_sem *sem);
90- DFHACK_EXPORT int DFSDL_PushEvent (SDL_Event *event);
91- DFHACK_EXPORT void DFSDL_free (void *ptr);
92- DFHACK_EXPORT SDL_PixelFormat* DFSDL_AllocFormat (uint32_t pixel_format);
93- DFHACK_EXPORT SDL_Surface* DFSDL_CreateRGBSurfaceWithFormat (uint32_t flags, int width, int height, int depth, uint32_t format);
94- DFHACK_EXPORT int DFSDL_ShowSimpleMessageBox (uint32_t flags, const char *title, const char *message, SDL_Window *window);
95-
96- // submitted and returned text is UTF-8
97- // see wrapper functions below for cp-437 variants
98- DFHACK_EXPORT char * DFSDL_GetClipboardText ();
99- DFHACK_EXPORT int DFSDL_SetClipboardText (const char *text);
100-
101- }
102-
103- // System clipboard -- submitted and returned text must be in CP437
104- DFHACK_EXPORT std::string getClipboardTextCp437 ();
105- DFHACK_EXPORT bool setClipboardTextCp437 (std::string text);
106-
107- // interprets 0xa as newline instead of usual CP437 char
108- DFHACK_EXPORT bool getClipboardTextCp437Multiline (std::vector<std::string> * lines);
109- DFHACK_EXPORT bool setClipboardTextCp437Multiline (std::string text);
77+ // interprets 0xa as newline instead of usual CP437 char
78+ DFHACK_EXPORT bool getClipboardTextCp437Multiline (std::vector<std::string> * lines);
79+ DFHACK_EXPORT bool setClipboardTextCp437Multiline (std::string text);
11080
11181}
0 commit comments