Cleanup: Compile internal File/Asset Browser headers in C++
C++ Conversion Background: #103343
This commit is contained in:
@@ -30,8 +30,8 @@
|
||||
#include "WM_api.h"
|
||||
|
||||
/* XXX uses private header of file-space. */
|
||||
#include "../space_file/file_indexer.h"
|
||||
#include "../space_file/filelist.h"
|
||||
#include "../space_file/file_indexer.hh"
|
||||
#include "../space_file/filelist.hh"
|
||||
|
||||
#include "ED_asset_indexer.h"
|
||||
#include "ED_asset_list.h"
|
||||
|
||||
@@ -38,9 +38,9 @@ set(SRC
|
||||
fsmenu.c
|
||||
space_file.cc
|
||||
|
||||
file_indexer.h
|
||||
file_intern.h
|
||||
filelist.h
|
||||
file_indexer.hh
|
||||
file_intern.hh
|
||||
filelist.hh
|
||||
fsmenu.h
|
||||
)
|
||||
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "file_intern.h"
|
||||
#include "filelist.h"
|
||||
#include "file_intern.hh"
|
||||
#include "filelist.hh"
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
|
||||
#include "RNA_prototypes.h"
|
||||
|
||||
#include "file_intern.h"
|
||||
#include "filelist.h"
|
||||
#include "file_intern.hh"
|
||||
#include "filelist.hh"
|
||||
|
||||
const char *file_context_dir[] = {
|
||||
"active_file",
|
||||
|
||||
@@ -55,9 +55,9 @@
|
||||
#include "GPU_immediate_util.h"
|
||||
#include "GPU_state.h"
|
||||
|
||||
#include "filelist.h"
|
||||
#include "filelist.hh"
|
||||
|
||||
#include "file_intern.h" /* own include */
|
||||
#include "file_intern.hh" /* own include */
|
||||
|
||||
void ED_file_path_button(bScreen *screen,
|
||||
const SpaceFile *sfile,
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
* This file implements the default file browser indexer and has some helper function to work with
|
||||
* `FileIndexerEntries`.
|
||||
*/
|
||||
#include "file_indexer.h"
|
||||
#include "file_indexer.hh"
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
@@ -55,8 +55,6 @@ static FileIndexerEntry *file_indexer_entry_create_from_datablock_info(
|
||||
|
||||
} // namespace blender::ed::file::indexer
|
||||
|
||||
extern "C" {
|
||||
|
||||
void ED_file_indexer_entries_extend_from_datablock_infos(
|
||||
FileIndexerEntries *indexer_entries,
|
||||
LinkNode * /*BLODataBlockInfo*/ datablock_infos,
|
||||
@@ -83,4 +81,3 @@ void ED_file_indexer_entries_clear(FileIndexerEntries *indexer_entries)
|
||||
}
|
||||
|
||||
const FileIndexerType file_indexer_noop = blender::ed::file::indexer::default_indexer();
|
||||
}
|
||||
|
||||
@@ -9,16 +9,8 @@
|
||||
|
||||
#include "ED_file_indexer.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Default indexer to use when listing files. The implementation is a no-operation indexing. When
|
||||
* set it won't use indexing. It is added to increase the code clarity.
|
||||
*/
|
||||
extern const FileIndexerType file_indexer_noop;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -11,10 +11,6 @@
|
||||
#include "DNA_space_types.h"
|
||||
#include "DNA_windowmanager_types.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* internal exports only */
|
||||
|
||||
struct ARegion;
|
||||
@@ -244,8 +240,6 @@ void file_create_asset_catalog_tree_view_in_layout(struct AssetLibrary *asset_li
|
||||
SpaceFile *space_file,
|
||||
FileAssetSelectParams *params);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
namespace blender::asset_system {
|
||||
class AssetLibrary;
|
||||
}
|
||||
@@ -267,9 +261,3 @@ void file_ensure_updated_catalog_filter_data(
|
||||
bool file_is_asset_visible_in_catalog_filter_settings(
|
||||
const FileAssetCatalogFilterSettingsHandle *filter_settings_handle,
|
||||
const AssetMetaData *asset_data);
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -45,8 +45,8 @@
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "file_intern.h"
|
||||
#include "filelist.h"
|
||||
#include "file_intern.hh"
|
||||
#include "filelist.hh"
|
||||
#include "fsmenu.h"
|
||||
|
||||
#include <cctype>
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "file_intern.h"
|
||||
#include "filelist.h"
|
||||
#include "file_intern.hh"
|
||||
#include "filelist.hh"
|
||||
#include "fsmenu.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "WM_types.h"
|
||||
|
||||
#include "file_intern.h"
|
||||
#include "file_intern.hh"
|
||||
|
||||
void file_tile_boundbox(const ARegion *region, FileLayout *layout, const int file, rcti *r_bounds)
|
||||
{
|
||||
|
||||
@@ -80,9 +80,9 @@
|
||||
|
||||
#include "atomic_ops.h"
|
||||
|
||||
#include "file_indexer.h"
|
||||
#include "file_intern.h"
|
||||
#include "filelist.h"
|
||||
#include "file_indexer.hh"
|
||||
#include "file_intern.hh"
|
||||
#include "filelist.hh"
|
||||
|
||||
using namespace blender;
|
||||
|
||||
|
||||
@@ -8,10 +8,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct AssetLibraryReference;
|
||||
struct BlendHandle;
|
||||
struct FileIndexerType;
|
||||
@@ -220,7 +216,3 @@ bool filelist_cache_previews_update(struct FileList *filelist);
|
||||
void filelist_cache_previews_set(struct FileList *filelist, bool use_previews);
|
||||
bool filelist_cache_previews_running(struct FileList *filelist);
|
||||
bool filelist_cache_previews_done(struct FileList *filelist);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
@@ -64,8 +64,8 @@
|
||||
#include "AS_asset_representation.hh"
|
||||
#include "AS_essentials_library.hh"
|
||||
|
||||
#include "file_intern.h"
|
||||
#include "filelist.h"
|
||||
#include "file_intern.hh"
|
||||
#include "filelist.hh"
|
||||
|
||||
#define VERTLIST_MAJORCOLUMN_WIDTH (25 * UI_UNIT_X)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "MEM_guardedalloc.h"
|
||||
|
||||
#include "file_intern.h"
|
||||
#include "file_intern.hh"
|
||||
|
||||
/* -------------------------------------------------------------------- */
|
||||
/** \name FOLDERLIST (previous/next)
|
||||
|
||||
@@ -46,9 +46,9 @@
|
||||
#include "BLO_read_write.h"
|
||||
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "file_indexer.h"
|
||||
#include "file_intern.h" /* own include */
|
||||
#include "filelist.h"
|
||||
#include "file_indexer.hh"
|
||||
#include "file_intern.hh" /* own include */
|
||||
#include "filelist.hh"
|
||||
#include "fsmenu.h"
|
||||
|
||||
/* ******************** default callbacks for file space ***************** */
|
||||
|
||||
@@ -76,7 +76,7 @@ typedef struct SpaceNode_Runtime SpaceNode_Runtime;
|
||||
typedef struct SpaceOutliner_Runtime SpaceOutliner_Runtime;
|
||||
#endif
|
||||
|
||||
/** Defined in `file_intern.h`. */
|
||||
/** Defined in `file_intern.hh`. */
|
||||
typedef struct SpaceFile_Runtime SpaceFile_Runtime;
|
||||
|
||||
/** Defined in `spreadsheet_intern.hh`. */
|
||||
|
||||
Reference in New Issue
Block a user