Skip to content

Commit

Permalink
Update dependency handling
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 24, 2025
1 parent 3273379 commit a3087c5
Show file tree
Hide file tree
Showing 17 changed files with 15 additions and 65 deletions.
6 changes: 1 addition & 5 deletions cpp/buses/in_process_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@
#include <memory>
#include <mutex>
#include <unordered_map>
#include <spdlog/spdlog.h>
#include "bus.h"

namespace spdlog
{
class logger;
}

class InProcessBus : public Bus
{

Expand Down
1 change: 0 additions & 1 deletion cpp/command/command_dispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "command_dispatcher.h"
#include <fstream>
#include <spdlog/spdlog.h>
#include "command_context.h"
#include "command_executor.h"
#include "command_image_support.h"
Expand Down
5 changes: 1 addition & 4 deletions cpp/command/command_dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,12 @@
#pragma once

#include <string>
#include <spdlog/spdlog.h>
#include "shared/s2p_defs.h"

class CommandContext;
class CommandExecutor;
class ControllerFactory;
namespace spdlog
{
class logger;
}
namespace s2p_interface
{
class PbResult;
Expand Down
5 changes: 1 addition & 4 deletions cpp/command/command_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,14 @@
#include <mutex>
#include <string>
#include <unordered_set>
#include <spdlog/spdlog.h>

class Bus;
class CommandContext;
class ControllerFactory;
class Device;
class PrimaryDevice;
class StorageDevice;
namespace spdlog
{
class logger;
}
namespace s2p_interface
{
class PbCommand;
Expand Down
5 changes: 1 addition & 4 deletions cpp/command/command_response.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@

#include <string>
#include <unordered_set>
#include <spdlog/spdlog.h>
#include "generated/s2p_interface.pb.h"

class PrimaryDevice;
namespace spdlog
{
class logger;
}

using namespace std;
using namespace spdlog;
Expand Down
5 changes: 1 addition & 4 deletions cpp/controllers/abstract_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,14 @@
#include <memory>
#include <span>
#include <unordered_set>
#include <spdlog/spdlog.h>
#include "phase_handler.h"
#include "shared/s2p_defs.h"
#include "shared/s2p_formatter.h"

class Bus;
class PrimaryDevice;
class ScriptGenerator;
namespace spdlog
{
class logger;
}

using namespace spdlog;

Expand Down
5 changes: 1 addition & 4 deletions cpp/initiator/initiator_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@

#include <memory>
#include <stdexcept>
#include <spdlog/spdlog.h>
#include "shared/s2p_formatter.h"
#include "shared/scsi.h"
#include "shared/s2p_defs.h"

class Bus;
namespace spdlog
{
class logger;
}

using namespace std;
using namespace spdlog;
Expand Down
5 changes: 1 addition & 4 deletions cpp/initiator/initiator_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@

#include <string>
#include <tuple>
#include <spdlog/spdlog.h>
#include "shared/scsi.h"

class Bus;
class InitiatorExecutor;
namespace spdlog
{
class logger;
}

using namespace std;
using namespace spdlog;
Expand Down
1 change: 0 additions & 1 deletion cpp/s2p/s2p_thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "command/command_context.h"
#include "shared/s2p_exceptions.h"

using namespace spdlog;
using namespace s2p_util;

string S2pThread::Init(const callback &cb, int port, shared_ptr<logger> logger)
Expand Down
5 changes: 1 addition & 4 deletions cpp/s2p/s2p_thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
#include <memory>
#include <string>
#include <thread>
#include <spdlog/spdlog.h>

class CommandContext;
namespace spdlog
{
class logger;
}

using namespace std;
using namespace spdlog;
Expand Down
6 changes: 1 addition & 5 deletions cpp/s2pdump/board_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,10 @@
#include <cstdint>
#include <set>
#include <span>
#include <spdlog/spdlog.h>
#include "initiator/initiator_executor.h"
#include "s2pdump_executor.h"

namespace spdlog
{
class logger;
}

using namespace std;
using namespace spdlog;

Expand Down
5 changes: 1 addition & 4 deletions cpp/s2pdump/s2pdump_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@
#include <memory>
#include <unordered_map>
#include <vector>
#include <spdlog/spdlog.h>
#include "buses/bus.h"

class S2pDumpExecutor;
class SgAdapter;
namespace spdlog
{
class logger;
}

using namespace std;
using namespace chrono;
Expand Down
3 changes: 1 addition & 2 deletions cpp/s2pdump/s2pdump_executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
//
// SCSI2Pi, SCSI device emulator and SCSI tools for the Raspberry Pi
//
// Copyright (C) 2023-2024 Uwe Seimet
// Copyright (C) 2023-2025 Uwe Seimet
//
//---------------------------------------------------------------------------

#include <spdlog/spdlog.h>
#include "s2pdump_executor.h"
#include "shared/s2p_exceptions.h"
#include "shared/memory_util.h"
Expand Down
6 changes: 1 addition & 5 deletions cpp/s2pdump/s2pdump_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
#include <set>
#include <span>
#include <vector>

namespace spdlog
{
class logger;
}
#include <spdlog/spdlog.h>

using namespace std;
using namespace spdlog;
Expand Down
5 changes: 1 addition & 4 deletions cpp/s2pdump/sg_executor.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@
#include <cstdint>
#include <set>
#include <span>
#include <spdlog/spdlog.h>
#include "s2pdump_executor.h"

class SgAdapter;
namespace spdlog
{
class logger;
}

using namespace std;
using namespace spdlog;
Expand Down
6 changes: 1 addition & 5 deletions cpp/s2pexec/s2pexec_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,11 @@

#pragma once

#include <spdlog/spdlog.h>
#include "buses/bus_factory.h"
#include "shared/s2p_formatter.h"
#include "s2pexec_executor.h"

namespace spdlog
{
class logger;
}

using namespace std;

class S2pExec
Expand Down
6 changes: 1 addition & 5 deletions cpp/shared/sg_adapter.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

#include <memory>
#include <vector>
#include <spdlog/spdlog.h>
#include "shared/command_meta_data.h"

namespace spdlog
{
class logger;
}

using namespace spdlog;

class SgAdapter
Expand Down

0 comments on commit a3087c5

Please sign in to comment.