Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey@blender.org>2022-04-29 17:41:02 +0300
committerSergey Sharybin <sergey@blender.org>2022-04-29 17:49:52 +0300
commit5d84d9b0d6ad114109d60cf3d0ddcd9bb1a5de13 (patch)
treeef4456b94bada69a976a4b0add3c2cd7d4512dc0 /source/blender/windowmanager/WM_api.h
parent2f49908a5e57a3476e5abf19267988775072c76d (diff)
Cleanup: Simplify job custom data query API
There were two calls to access job's custom data. One of them ignored job type, the other one ignored job owner. Now there is a single function to access job's custom data. If the job type or owner is not relevant NULL or WM_JOB_TYPE_ANY can be passes explicitly. Differential Revision: https://developer.blender.org/D14803
Diffstat (limited to 'source/blender/windowmanager/WM_api.h')
-rw-r--r--source/blender/windowmanager/WM_api.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h
index 9a4d024328a..525301d4393 100644
--- a/source/blender/windowmanager/WM_api.h
+++ b/source/blender/windowmanager/WM_api.h
@@ -1322,8 +1322,7 @@ const char *WM_jobs_name(const struct wmWindowManager *wm, const void *owner);
* Time that job started.
*/
double WM_jobs_starttime(const struct wmWindowManager *wm, const void *owner);
-void *WM_jobs_customdata(struct wmWindowManager *wm, const void *owner);
-void *WM_jobs_customdata_from_type(struct wmWindowManager *wm, int job_type);
+void *WM_jobs_customdata_from_type(struct wmWindowManager *wm, const void *owner, int job_type);
bool WM_jobs_is_running(const struct wmJob *wm_job);
bool WM_jobs_is_stopped(const wmWindowManager *wm, const void *owner);