From dcae2a0624905d149fb3ab93cec0c79973a393da Mon Sep 17 00:00:00 2001 From: jp9000 Date: Mon, 10 Nov 2014 01:33:08 -0800 Subject: [PATCH] win-capture: Expose get_window_exe as extern This allows get_window_exe to be used with other .c files in the module. --- plugins/win-capture/window-helpers.c | 2 +- plugins/win-capture/window-helpers.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/win-capture/window-helpers.c b/plugins/win-capture/window-helpers.c index cd53a80f7..b6963e3b2 100644 --- a/plugins/win-capture/window-helpers.c +++ b/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); } -static bool get_window_exe(struct dstr *name, HWND window) +bool get_window_exe(struct dstr *name, HWND window) { wchar_t wname[MAX_PATH]; struct dstr temp = {0}; diff --git a/plugins/win-capture/window-helpers.h b/plugins/win-capture/window-helpers.h index 9199aa4bc..2f8bc34e5 100644 --- a/plugins/win-capture/window-helpers.h +++ b/plugins/win-capture/window-helpers.h @@ -1,5 +1,7 @@ #pragma once +#include + enum window_priority { WINDOW_PRIORITY_CLASS, WINDOW_PRIORITY_TITLE, @@ -11,6 +13,8 @@ enum window_search_mode { 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 build_window_strings(const char *str,