Blender V5.3
filelist_readjob_common.cc File Reference
#include "AS_asset_library.hh"
#include "BLI_linklist.hh"
#include "BLI_listbase.hh"
#include "BLI_path_utils.hh"
#include "BLI_stack_c.hh"
#include "BLI_string.hh"
#include "BLI_string_utils.hh"
#include "BKE_asset.hh"
#include "BKE_blendfile.hh"
#include "BKE_idtype.hh"
#include "DNA_space_enums.h"
#include "ED_file_indexer.hh"
#include "ED_fileselect.hh"
#include "filelist_intern.hh"
#include "filelist_readjob.hh"

Go to the source code of this file.

Classes

struct  blender::TodoDir
struct  blender::FileIndexer

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static int blender::groupname_to_code (const char *group)
char * blender::current_relpath_append (const FileListReadJob *job_params, const char *filename)
bool blender::filelist_readjob_append_entries (FileListReadJob *job_params, ListBaseT< FileListInternEntry > *from_entries, int from_entries_num)
void blender::filelist_readjob_load_asset_library_data (FileListReadJob *job_params, bool *do_update)
Common callbacks.
bool blender::filelist_checkdir_return_always_valid (const FileList *, char[FILE_MAX_LIBEXTRA], const bool)
static void blender::parent_dir_until_exists_or_default_root (char *dir)
bool blender::filelist_checkdir_dir (const FileList *, char dirpath[FILE_MAX_LIBEXTRA], const bool do_change)
bool blender::filelist_checkdir_lib (const FileList *, char dirpath[FILE_MAX_LIBEXTRA], const bool do_change)

File-list Directory/Library Reading

enum  blender::ListLibOptions { blender::LIST_LIB_OPTION_NONE = 0 , blender::LIST_LIB_RECURSIVE = (1 << 0) , blender::LIST_LIB_ASSETS_ONLY = (1 << 1) , blender::LIST_LIB_ADD_PARENT = (1 << 2) }
static int blender::filelist_readjob_list_dir (FileListReadJob *job_params, const char *root, ListBaseT< FileListInternEntry > *entries, const char *filter_glob, const bool do_lib, const char *main_filepath, const bool skip_currpar)
 blender::ENUM_OPERATORS (ListLibOptions)
static FileListInternEntry * blender::filelist_readjob_list_lib_group_create (const FileListReadJob *job_params, const int idcode, const char *group_name)
void blender::filelist_readjob_list_lib_add_datablock (FileListReadJob *job_params, ListBaseT< FileListInternEntry > *entries, BLODataBlockInfo *datablock_info, const bool prefix_relpath_with_group_name, const int idcode, const char *group_name, const std::optional< asset_system::OnlineAssetInfo > online_asset_info=std::nullopt)
static void blender::filelist_readjob_list_lib_add_datablocks (FileListReadJob *job_params, ListBaseT< FileListInternEntry > *entries, LinkNode *datablock_infos, const bool prefix_relpath_with_group_name, const int idcode, const char *group_name)
static FileListInternEntry * blender::filelist_readjob_list_lib_navigate_to_parent_entry_create (const FileListReadJob *job_params)
static void blender::filelist_readjob_list_lib_add_from_indexer_entries (FileListReadJob *job_params, ListBaseT< FileListInternEntry > *entries, const FileIndexerEntries *indexer_entries, const bool prefix_relpath_with_group_name)
static int blender::filelist_readjob_list_lib_populate_from_index (FileListReadJob *job_params, ListBaseT< FileListInternEntry > *entries, const ListLibOptions options, const int read_from_index, const FileIndexerEntries *indexer_entries)
static std::optional< int > blender::filelist_readjob_list_lib (FileListReadJob *job_params, const char *root, ListBaseT< FileListInternEntry > *entries, const ListLibOptions options, FileIndexer *indexer_runtime)
static bool blender::filelist_readjob_should_recurse_into_entry (const int max_recursion, const bool is_lib, const int current_recursion_level, FileListInternEntry *entry)
void blender::filelist_readjob_recursive_dir_add_items (const bool do_lib, FileListReadJob *job_params, const bool *stop, bool *do_update, float *progress)
void blender::filelist_readjob_directories_and_libraries (const bool do_lib, FileListReadJob *job_params, const bool *stop, bool *do_update, float *progress)