diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-19 07:56:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-19 07:56:49 +0300 |
commit | f2eef452009f5958bbf783f9970534c3349fc753 (patch) | |
tree | bab7b17cdb3b85b0c41e52e82fad8774d328c333 /source/blender/windowmanager/wm_files.h | |
parent | 7decb9ad080eef002c6093581d486727836dbbf0 (diff) |
Cleanup: use wm prefix for GenericCallback
Without this it's not clear what kinds of data this deals with.
Diffstat (limited to 'source/blender/windowmanager/wm_files.h')
-rw-r--r-- | source/blender/windowmanager/wm_files.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/windowmanager/wm_files.h b/source/blender/windowmanager/wm_files.h index 8b3f1ead215..e75626a4f30 100644 --- a/source/blender/windowmanager/wm_files.h +++ b/source/blender/windowmanager/wm_files.h @@ -40,15 +40,15 @@ 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 { +typedef struct wmGenericCallback { void (*exec)(bContext *C, void *user_data); void *user_data; void (*free_user_data)(void *user_data); -} GenericCallback; +} wmGenericCallback; -GenericCallback *wm_generic_callback_steal(GenericCallback *callback); -void wm_generic_callback_free(GenericCallback *callback); -void wm_close_file_dialog(bContext *C, GenericCallback *post_action); +wmGenericCallback *wm_generic_callback_steal(wmGenericCallback *callback); +void wm_generic_callback_free(wmGenericCallback *callback); +void wm_close_file_dialog(bContext *C, wmGenericCallback *post_action); bool wm_file_or_image_is_modified(const struct bContext *C); void WM_OT_save_homefile(struct wmOperatorType *ot); |