Move entry_points.h into import_pipeline.h

This commit is contained in:
Jacob Dufault 2017-12-29 09:52:43 -06:00
parent 36e7fa9a76
commit 59e79b3c42
4 changed files with 14 additions and 32 deletions

View File

@ -1,30 +0,0 @@
#pragma once
#include "config.h"
#include "file_consumer.h"
#include "import_manager.h"
#include "import_pipeline.h"
#include "queue_manager.h"
#include "project.h"
#include "semantic_highlight_symbol_cache.h"
#include "threaded_queue.h"
#include "timestamp_manager.h"
#include "work_thread.h"
#include "working_files.h"
// Contains declarations for some of the thread-main functions.
bool QueryDb_ImportMain(Config* config,
QueryDatabase* db,
ImportManager* import_manager,
SemanticHighlightSymbolCache* semantic_cache,
WorkingFiles* working_files);
void IndexMain(Config* config,
FileConsumer::SharedState* file_consumer_shared,
TimestampManager* timestamp_manager,
ImportManager* import_manager,
ImportPipelineStatus* status,
Project* project,
WorkingFiles* working_files,
MultiQueueWaiter* waiter);

View File

@ -9,8 +9,11 @@
struct ClangTranslationUnit; struct ClangTranslationUnit;
struct Config; struct Config;
struct ImportManager; struct ImportManager;
struct MultiQueueWaiter;
struct Project;
struct QueryDatabase; struct QueryDatabase;
struct SemanticHighlightSymbolCache; struct SemanticHighlightSymbolCache;
struct TimestampManager;
struct WorkingFiles; struct WorkingFiles;
struct ImportPipelineStatus { struct ImportPipelineStatus {
@ -26,6 +29,15 @@ void IndexWithTuFromCodeCompletion(
const std::string& path, const std::string& path,
const std::vector<std::string>& args); const std::vector<std::string>& args);
void IndexMain(Config* config,
FileConsumer::SharedState* file_consumer_shared,
TimestampManager* timestamp_manager,
ImportManager* import_manager,
ImportPipelineStatus* status,
Project* project,
WorkingFiles* working_files,
MultiQueueWaiter* waiter);
bool QueryDb_ImportMain(Config* config, bool QueryDb_ImportMain(Config* config,
QueryDatabase* db, QueryDatabase* db,
ImportManager* import_manager, ImportManager* import_manager,

View File

@ -1,4 +1,4 @@
#include "entry_points.h" #include "import_pipeline.h"
#include "message_handler.h" #include "message_handler.h"
#include <loguru.hpp> #include <loguru.hpp>

View File

@ -1,4 +1,4 @@
#include "entry_points.h" #include "import_pipeline.h"
#include "message_handler.h" #include "message_handler.h"
#include "platform.h" #include "platform.h"
#include "timer.h" #include "timer.h"