diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-20 09:52:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-20 09:52:49 +0300 |
commit | f606f588455ef6909b98a35839ee6eb0eda6516d (patch) | |
tree | 56226c3ae7bcf87995eda8a600dd9eb36bcabfec /source/blender/windowmanager/wm_files.h | |
parent | 3184460ff7f4f660a70ec7a18a3a882eb2de57f8 (diff) |
Cleanup: add wm_utils.c for generic functions
Diffstat (limited to 'source/blender/windowmanager/wm_files.h')
-rw-r--r-- | source/blender/windowmanager/wm_files.h | 11 |
1 files changed, 2 insertions, 9 deletions
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); |