From f606f588455ef6909b98a35839ee6eb0eda6516d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 20 May 2019 16:52:49 +1000 Subject: Cleanup: add wm_utils.c for generic functions --- source/blender/windowmanager/wm_files.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'source/blender/windowmanager/wm_files.h') diff --git a/source/blender/windowmanager/wm_files.h b/source/blender/windowmanager/wm_files.h index e75626a4f30..0aa4357a8f4 100644 --- a/source/blender/windowmanager/wm_files.h +++ b/source/blender/windowmanager/wm_files.h @@ -25,6 +25,7 @@ #define __WM_FILES_H__ struct Main; +struct wmGenericCallback; struct wmOperatorType; /* wm_files.c */ @@ -40,15 +41,7 @@ void wm_homefile_read(struct bContext *C, bool *r_is_factory_startup); void wm_file_read_report(bContext *C, struct Main *bmain); -typedef struct wmGenericCallback { - void (*exec)(bContext *C, void *user_data); - void *user_data; - void (*free_user_data)(void *user_data); -} wmGenericCallback; - -wmGenericCallback *wm_generic_callback_steal(wmGenericCallback *callback); -void wm_generic_callback_free(wmGenericCallback *callback); -void wm_close_file_dialog(bContext *C, wmGenericCallback *post_action); +void wm_close_file_dialog(bContext *C, struct wmGenericCallback *post_action); bool wm_file_or_image_is_modified(const struct bContext *C); void WM_OT_save_homefile(struct wmOperatorType *ot); -- cgit v1.2.3