Make send_message_to_ui_thread private
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 6 Aug 2018 08:47:24 +0000 (10:47 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 6 Aug 2018 08:47:24 +0000 (10:47 +0200)
* src/windowmessages.cpp, src/windowmessages.h
(send_msg_to_ui_thread): Make it static

--
Helps reviewing code to check if the wm_ctx_t is always valid.

src/windowmessages.cpp
src/windowmessages.h

index 7c35484..bf252a0 100644 (file)
@@ -262,7 +262,7 @@ create_responder_window ()
   return g_responder_window;
 }
 
-int
+static int
 send_msg_to_ui_thread (wm_ctx_t *ctx)
 {
   size_t cls_name_len = strlen(RESPONDER_CLASS_NAME) + 1;
index 175bb52..1730a25 100644 (file)
@@ -70,11 +70,6 @@ typedef struct
 HWND
 create_responder_window ();
 
-/** Send a message to the UI thread through the responder Window.
-  Returns 0 on success. */
-int
-send_msg_to_ui_thread (wm_ctx_t *ctx);
-
 /** Uses send_msg_to_ui_thread to execute the request
   in the ui thread.  Returns the result. */
 int