Kaynağa Gözat

win-capture: Expose helper funcs to get win. class/title

jp9000 9 yıl önce
ebeveyn
işleme
383c96744e

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

@@ -104,7 +104,7 @@ fail:
 	return true;
 }
 
-static void get_window_title(struct dstr *name, HWND hwnd)
+void get_window_title(struct dstr *name, HWND hwnd)
 {
 	wchar_t *temp;
 	int len;
@@ -119,7 +119,7 @@ static void get_window_title(struct dstr *name, HWND hwnd)
 	free(temp);
 }
 
-static void get_window_class(struct dstr *class, HWND hwnd)
+void get_window_class(struct dstr *class, HWND hwnd)
 {
 	wchar_t temp[256];
 

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

@@ -14,6 +14,8 @@ enum window_search_mode {
 };
 
 extern bool get_window_exe(struct dstr *name, HWND window);
+extern void get_window_title(struct dstr *name, HWND hwnd);
+extern void get_window_class(struct dstr *class, HWND hwnd);
 
 extern void fill_window_list(obs_property_t *p, enum window_search_mode mode);