diff options
Diffstat (limited to 'source/blender/windowmanager/wm_files.h')
-rw-r--r-- | source/blender/windowmanager/wm_files.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/blender/windowmanager/wm_files.h b/source/blender/windowmanager/wm_files.h index 24209504a07..8b3f1ead215 100644 --- a/source/blender/windowmanager/wm_files.h +++ b/source/blender/windowmanager/wm_files.h @@ -40,6 +40,17 @@ void wm_homefile_read(struct bContext *C, bool *r_is_factory_startup); void wm_file_read_report(bContext *C, struct Main *bmain); +typedef struct GenericCallback { + void (*exec)(bContext *C, void *user_data); + void *user_data; + void (*free_user_data)(void *user_data); +} GenericCallback; + +GenericCallback *wm_generic_callback_steal(GenericCallback *callback); +void wm_generic_callback_free(GenericCallback *callback); +void wm_close_file_dialog(bContext *C, GenericCallback *post_action); +bool wm_file_or_image_is_modified(const struct bContext *C); + void WM_OT_save_homefile(struct wmOperatorType *ot); void WM_OT_userpref_autoexec_path_add(struct wmOperatorType *ot); void WM_OT_userpref_autoexec_path_remove(struct wmOperatorType *ot); |