From fff80afe399333dccd8f2a921b67ce413c330a1b Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Wed, 5 May 2021 12:51:12 +0200 Subject: LibQuery: Cleanup: Document more fields of `LibraryForeachIDData` struct. --- source/blender/blenkernel/intern/lib_query.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/blender/blenkernel/intern/lib_query.c b/source/blender/blenkernel/intern/lib_query.c index 2c659890ec0..cbbe07f99d8 100644 --- a/source/blender/blenkernel/intern/lib_query.c +++ b/source/blender/blenkernel/intern/lib_query.c @@ -56,11 +56,19 @@ typedef struct LibraryForeachIDData { */ ID *self_id; + /** Flags controlling the bahaviour of the 'foreach id' looping code. */ int flag; + /** Generic flags to be passed to all callback calls for current processed data. */ int cb_flag; + /** Callback flags that are forbidden for all callback calls for current processed data. */ int cb_flag_clear; + + /* Function to call for every ID pointers of current processed data, and its opaque user data + * pointer. */ LibraryIDLinkCallback callback; void *user_data; + /** Store the returned value from the callback, to decide how to continue the processing of ID + * pointers for current data. */ int status; /* To handle recursion. */ -- cgit v1.2.3