diff options
author | Bastien Montagne <bastien@blender.org> | 2021-05-05 13:51:12 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-05-05 13:51:59 +0300 |
commit | fff80afe399333dccd8f2a921b67ce413c330a1b (patch) | |
tree | dab77da9f2fc5c6b4e840fdcaab8de3e83b27d27 /source/blender/blenkernel/intern/lib_query.c | |
parent | 693a215dc4460502388da7c63921f4d43c24a082 (diff) |
LibQuery: Cleanup: Document more fields of `LibraryForeachIDData` struct.
Diffstat (limited to 'source/blender/blenkernel/intern/lib_query.c')
-rw-r--r-- | source/blender/blenkernel/intern/lib_query.c | 8 |
1 files changed, 8 insertions, 0 deletions
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. */ |