Browse Source

win-capture: Expose get_window_exe as extern

This allows get_window_exe to be used with other .c files in the module.
jp9000 11 years ago
parent
commit
dcae2a0624
2 changed files with 5 additions and 1 deletions
  1. 1 1
      plugins/win-capture/window-helpers.c
  2. 4 0
      plugins/win-capture/window-helpers.h

+ 1 - 1
plugins/win-capture/window-helpers.c

@@ -68,7 +68,7 @@ static inline HANDLE open_process(DWORD desired_access, bool inherit_handle,
 	return open_process_proc(desired_access, inherit_handle, process_id);
 	return open_process_proc(desired_access, inherit_handle, process_id);
 }
 }
 
 
-static bool get_window_exe(struct dstr *name, HWND window)
+bool get_window_exe(struct dstr *name, HWND window)
 {
 {
 	wchar_t     wname[MAX_PATH];
 	wchar_t     wname[MAX_PATH];
 	struct dstr temp    = {0};
 	struct dstr temp    = {0};

+ 4 - 0
plugins/win-capture/window-helpers.h

@@ -1,5 +1,7 @@
 #pragma once
 #pragma once
 
 
+#include <util/dstr.h>
+
 enum window_priority {
 enum window_priority {
 	WINDOW_PRIORITY_CLASS,
 	WINDOW_PRIORITY_CLASS,
 	WINDOW_PRIORITY_TITLE,
 	WINDOW_PRIORITY_TITLE,
@@ -11,6 +13,8 @@ enum window_search_mode {
 	EXCLUDE_MINIMIZED
 	EXCLUDE_MINIMIZED
 };
 };
 
 
+extern bool get_window_exe(struct dstr *name, HWND window);
+
 extern void fill_window_list(obs_property_t *p, enum window_search_mode mode);
 extern void fill_window_list(obs_property_t *p, enum window_search_mode mode);
 
 
 extern void build_window_strings(const char *str,
 extern void build_window_strings(const char *str,