diff --git a/build.py b/build.py index ba607bd2..5fc03aea 100644 --- a/build.py +++ b/build.py @@ -82,7 +82,6 @@ "./lib/imagewriter/rawimagewriter.cc", "./lib/layout.cc", "./lib/ldbs.cc", - "./lib/logger.cc", "./lib/logrenderer.cc", "./lib/proto.cc", "./lib/readerwriter.cc", @@ -180,7 +179,6 @@ "lib/imagewriter/imagewriter.h": "./lib/imagewriter/imagewriter.h", "lib/layout.h": "./lib/layout.h", "lib/ldbs.h": "./lib/ldbs.h", - "lib/logger.h": "./lib/logger.h", "lib/proto.h": "./lib/proto.h", "lib/readerwriter.h": "./lib/readerwriter.h", "lib/sector.h": "./lib/sector.h", diff --git a/lib/config.cc b/lib/config.cc index fda2ecd1..da8bd8f8 100644 --- a/lib/config.cc +++ b/lib/config.cc @@ -1,7 +1,7 @@ #include "lib/core/globals.h" #include "lib/config.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/core/utils.h" #include #include diff --git a/lib/core/build.py b/lib/core/build.py index b549b3a9..ce34f3a4 100644 --- a/lib/core/build.py +++ b/lib/core/build.py @@ -9,6 +9,7 @@ "./csvreader.cc", "./hexdump.cc", "./utils.cc", + "./logger.cc", ], hdrs={ "lib/core/bitmap.h": "./bitmap.h", @@ -17,6 +18,7 @@ "lib/core/csvreader.h": "./csvreader.h", "lib/core/globals.h": "./globals.h", "lib/core/utils.h": "./utils.h", + "lib/core/logger.h": "./logger.h", }, deps=[ "dep/agg", diff --git a/lib/logger.cc b/lib/core/logger.cc similarity index 93% rename from lib/logger.cc rename to lib/core/logger.cc index cace6e1c..2bfe4663 100644 --- a/lib/logger.cc +++ b/lib/core/logger.cc @@ -1,9 +1,6 @@ #include "lib/core/globals.h" #include "lib/core/bytes.h" -#include "lib/fluxmap.h" -#include "lib/sector.h" -#include "lib/flux.h" -#include "lib/logger.h" +#include "lib/core/logger.h" static bool indented = false; diff --git a/lib/logger.h b/lib/core/logger.h similarity index 100% rename from lib/logger.h rename to lib/core/logger.h diff --git a/lib/flags.cc b/lib/flags.cc index 02babdd6..ec6dfe17 100644 --- a/lib/flags.cc +++ b/lib/flags.cc @@ -3,7 +3,7 @@ #include "lib/flags.h" #include "lib/proto.h" #include "lib/core/utils.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/fluxsource/fluxsource.h" #include "lib/imagereader/imagereader.h" #include diff --git a/lib/fluxsink/a2rfluxsink.cc b/lib/fluxsink/a2rfluxsink.cc index 75e320a3..c658a694 100644 --- a/lib/fluxsink/a2rfluxsink.cc +++ b/lib/fluxsink/a2rfluxsink.cc @@ -6,7 +6,7 @@ #include "lib/fluxsink/fluxsink.h" #include "lib/decoders/fluxmapreader.h" #include "lib/fluxsink/fluxsink.pb.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/proto.h" #include "lib/fluxmap.h" #include "lib/layout.h" diff --git a/lib/fluxsink/hardwarefluxsink.cc b/lib/fluxsink/hardwarefluxsink.cc index b0b4c0dd..c05e71d4 100644 --- a/lib/fluxsink/hardwarefluxsink.cc +++ b/lib/fluxsink/hardwarefluxsink.cc @@ -2,7 +2,7 @@ #include "lib/config.h" #include "lib/flags.h" #include "lib/fluxmap.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/proto.h" #include "lib/usb/usb.h" #include "lib/fluxsink/fluxsink.h" diff --git a/lib/fluxsink/scpfluxsink.cc b/lib/fluxsink/scpfluxsink.cc index ecec9c6c..89aa4980 100644 --- a/lib/fluxsink/scpfluxsink.cc +++ b/lib/fluxsink/scpfluxsink.cc @@ -11,7 +11,7 @@ #include "lib/fluxmap.h" #include "lib/layout.h" #include "lib/scp.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include #include diff --git a/lib/fluxsource/dmkfluxsource.cc b/lib/fluxsource/dmkfluxsource.cc index 3a216268..d87c0b5d 100644 --- a/lib/fluxsource/dmkfluxsource.cc +++ b/lib/fluxsource/dmkfluxsource.cc @@ -4,7 +4,7 @@ #include "lib/fluxsource/fluxsource.h" #include "lib/fluxsource/catweasel.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include diff --git a/lib/fluxsource/hardwarefluxsource.cc b/lib/fluxsource/hardwarefluxsource.cc index 51124908..7c119ba3 100644 --- a/lib/fluxsource/hardwarefluxsource.cc +++ b/lib/fluxsource/hardwarefluxsource.cc @@ -2,7 +2,7 @@ #include "lib/config.h" #include "lib/flags.h" #include "lib/fluxmap.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/proto.h" #include "lib/usb/usb.h" #include "lib/fluxsource/fluxsource.h" diff --git a/lib/fluxsource/scpfluxsource.cc b/lib/fluxsource/scpfluxsource.cc index feea620e..b9c4d8f1 100644 --- a/lib/fluxsource/scpfluxsource.cc +++ b/lib/fluxsource/scpfluxsource.cc @@ -6,7 +6,7 @@ #include "lib/fluxsource/fluxsource.h" #include "lib/scp.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include static int trackno(int strack) diff --git a/lib/globals.cc b/lib/globals.cc index f7850840..e02b2807 100644 --- a/lib/globals.cc +++ b/lib/globals.cc @@ -1,5 +1,5 @@ #include "lib/core/globals.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include diff --git a/lib/imagereader/d64imagereader.cc b/lib/imagereader/d64imagereader.cc index 51ec4ed6..13e90f0f 100644 --- a/lib/imagereader/d64imagereader.cc +++ b/lib/imagereader/d64imagereader.cc @@ -3,7 +3,7 @@ #include "lib/sector.h" #include "lib/imagereader/imagereader.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/proto.h" #include #include diff --git a/lib/imagereader/d88imagereader.cc b/lib/imagereader/d88imagereader.cc index 12c93235..4e2d911a 100644 --- a/lib/imagereader/d88imagereader.cc +++ b/lib/imagereader/d88imagereader.cc @@ -4,7 +4,7 @@ #include "lib/imagereader/imagereader.h" #include "lib/image.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagereader/dimimagereader.cc b/lib/imagereader/dimimagereader.cc index 38f77060..d5b2b4c5 100644 --- a/lib/imagereader/dimimagereader.cc +++ b/lib/imagereader/dimimagereader.cc @@ -4,7 +4,7 @@ #include "lib/sector.h" #include "lib/imagereader/imagereader.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/proto.h" #include "lib/config.pb.h" #include diff --git a/lib/imagereader/diskcopyimagereader.cc b/lib/imagereader/diskcopyimagereader.cc index d708e4c9..c92575e0 100644 --- a/lib/imagereader/diskcopyimagereader.cc +++ b/lib/imagereader/diskcopyimagereader.cc @@ -3,7 +3,7 @@ #include "lib/sector.h" #include "lib/imagereader/imagereader.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagereader/fdiimagereader.cc b/lib/imagereader/fdiimagereader.cc index 65959310..e856f324 100644 --- a/lib/imagereader/fdiimagereader.cc +++ b/lib/imagereader/fdiimagereader.cc @@ -5,7 +5,7 @@ #include "lib/imagereader/imagereader.h" #include "lib/image.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagereader/imagereader.cc b/lib/imagereader/imagereader.cc index 55bc3439..c97c0fd0 100644 --- a/lib/imagereader/imagereader.cc +++ b/lib/imagereader/imagereader.cc @@ -8,7 +8,7 @@ #include "lib/image.h" #include "lib/layout.h" #include "lib/config.pb.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include diff --git a/lib/imagereader/imdimagereader.cc b/lib/imagereader/imdimagereader.cc index c1a452c9..da2e096b 100644 --- a/lib/imagereader/imdimagereader.cc +++ b/lib/imagereader/imdimagereader.cc @@ -4,7 +4,7 @@ #include "lib/imagereader/imagereader.h" #include "lib/image.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/layout.h" #include "lib/config.pb.h" #include diff --git a/lib/imagereader/imgimagereader.cc b/lib/imagereader/imgimagereader.cc index 2e0b9415..ac888836 100644 --- a/lib/imagereader/imgimagereader.cc +++ b/lib/imagereader/imgimagereader.cc @@ -4,7 +4,7 @@ #include "lib/sector.h" #include "lib/imagereader/imagereader.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include "lib/layout.pb.h" #include "lib/proto.h" diff --git a/lib/imagereader/jv3imagereader.cc b/lib/imagereader/jv3imagereader.cc index b3e91c4b..de317c00 100644 --- a/lib/imagereader/jv3imagereader.cc +++ b/lib/imagereader/jv3imagereader.cc @@ -3,7 +3,7 @@ #include "lib/sector.h" #include "lib/imagereader/imagereader.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagereader/nfdimagereader.cc b/lib/imagereader/nfdimagereader.cc index 8c9dc05c..a7dc8b0f 100644 --- a/lib/imagereader/nfdimagereader.cc +++ b/lib/imagereader/nfdimagereader.cc @@ -4,7 +4,7 @@ #include "lib/imagereader/imagereader.h" #include "lib/image.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagereader/nsiimagereader.cc b/lib/imagereader/nsiimagereader.cc index e02a1960..ce22a323 100644 --- a/lib/imagereader/nsiimagereader.cc +++ b/lib/imagereader/nsiimagereader.cc @@ -5,7 +5,7 @@ #include "lib/sector.h" #include "lib/imagereader/imagereader.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/imagereader/imagereader.pb.h" #include #include diff --git a/lib/imagereader/td0imagereader.cc b/lib/imagereader/td0imagereader.cc index 5198ebe8..26288ab6 100644 --- a/lib/imagereader/td0imagereader.cc +++ b/lib/imagereader/td0imagereader.cc @@ -4,7 +4,7 @@ #include "lib/imagereader/imagereader.h" #include "lib/image.h" #include "lib/core/crc.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagewriter/d64imagewriter.cc b/lib/imagewriter/d64imagewriter.cc index c11419a1..44dda2ef 100644 --- a/lib/imagewriter/d64imagewriter.cc +++ b/lib/imagewriter/d64imagewriter.cc @@ -4,7 +4,7 @@ #include "lib/imagewriter/imagewriter.h" #include "lib/image.h" #include "lib/ldbs.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagewriter/d88imagewriter.cc b/lib/imagewriter/d88imagewriter.cc index db31252c..7623caa8 100644 --- a/lib/imagewriter/d88imagewriter.cc +++ b/lib/imagewriter/d88imagewriter.cc @@ -5,7 +5,7 @@ #include "lib/image.h" #include "lib/config.pb.h" #include "lib/layout.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include #include diff --git a/lib/imagewriter/diskcopyimagewriter.cc b/lib/imagewriter/diskcopyimagewriter.cc index f2ad6ffe..be2a1dcb 100644 --- a/lib/imagewriter/diskcopyimagewriter.cc +++ b/lib/imagewriter/diskcopyimagewriter.cc @@ -4,7 +4,7 @@ #include "lib/imagewriter/imagewriter.h" #include "lib/ldbs.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagewriter/imagewriter.cc b/lib/imagewriter/imagewriter.cc index 5c51e20d..2782a21f 100644 --- a/lib/imagewriter/imagewriter.cc +++ b/lib/imagewriter/imagewriter.cc @@ -8,7 +8,7 @@ #include "lib/config.pb.h" #include "lib/proto.h" #include "lib/layout.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include diff --git a/lib/imagewriter/imdimagewriter.cc b/lib/imagewriter/imdimagewriter.cc index fe224940..07360f9a 100644 --- a/lib/imagewriter/imdimagewriter.cc +++ b/lib/imagewriter/imdimagewriter.cc @@ -5,7 +5,7 @@ #include "lib/image.h" #include "lib/config.pb.h" #include "lib/layout.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include #include diff --git a/lib/imagewriter/imgimagewriter.cc b/lib/imagewriter/imgimagewriter.cc index 9093d623..5b4d26b5 100644 --- a/lib/imagewriter/imgimagewriter.cc +++ b/lib/imagewriter/imgimagewriter.cc @@ -8,7 +8,7 @@ #include "lib/config.pb.h" #include "lib/layout.h" #include "lib/layout.pb.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include #include #include diff --git a/lib/imagewriter/ldbsimagewriter.cc b/lib/imagewriter/ldbsimagewriter.cc index 32aa373e..c24f9238 100644 --- a/lib/imagewriter/ldbsimagewriter.cc +++ b/lib/imagewriter/ldbsimagewriter.cc @@ -4,7 +4,7 @@ #include "lib/imagewriter/imagewriter.h" #include "lib/ldbs.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/config.pb.h" #include #include diff --git a/lib/imagewriter/nsiimagewriter.cc b/lib/imagewriter/nsiimagewriter.cc index 4720647d..39893cd3 100644 --- a/lib/imagewriter/nsiimagewriter.cc +++ b/lib/imagewriter/nsiimagewriter.cc @@ -4,7 +4,7 @@ #include "lib/imagewriter/imagewriter.h" #include "lib/decoders/decoders.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "arch/northstar/northstar.h" #include "lib/imagewriter/imagewriter.pb.h" #include diff --git a/lib/imagewriter/rawimagewriter.cc b/lib/imagewriter/rawimagewriter.cc index 5c5d9113..c1684f5a 100644 --- a/lib/imagewriter/rawimagewriter.cc +++ b/lib/imagewriter/rawimagewriter.cc @@ -4,7 +4,7 @@ #include "lib/imagewriter/imagewriter.h" #include "lib/decoders/decoders.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "arch/northstar/northstar.h" #include "lib/imagewriter/imagewriter.pb.h" #include diff --git a/lib/layout.cc b/lib/layout.cc index 752436d2..b5dd5bab 100644 --- a/lib/layout.cc +++ b/lib/layout.cc @@ -2,7 +2,7 @@ #include "lib/config.h" #include "lib/layout.h" #include "lib/proto.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/fl2.h" static unsigned getTrackStep() diff --git a/lib/logrenderer.cc b/lib/logrenderer.cc index 9314a0c6..5662931c 100644 --- a/lib/logrenderer.cc +++ b/lib/logrenderer.cc @@ -3,7 +3,7 @@ #include "lib/fluxmap.h" #include "lib/sector.h" #include "lib/flux.h" -#include "lib/logger.h" +#include "lib/core/logger.h" namespace { diff --git a/lib/readerwriter.cc b/lib/readerwriter.cc index 861d7726..36585756 100644 --- a/lib/readerwriter.cc +++ b/lib/readerwriter.cc @@ -13,7 +13,7 @@ #include "lib/imagewriter/imagewriter.h" #include "lib/sector.h" #include "lib/image.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/layout.h" #include "lib/core/utils.h" #include "lib/config.pb.h" diff --git a/lib/usb/usb.cc b/lib/usb/usb.cc index c9e3683c..078aaa7b 100644 --- a/lib/usb/usb.cc +++ b/lib/usb/usb.cc @@ -9,7 +9,7 @@ #include "lib/core/bytes.h" #include "lib/proto.h" #include "usbfinder.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "applesauce.h" #include "greaseweazle.h" diff --git a/lib/vfs/amigaffs.cc b/lib/vfs/amigaffs.cc index 2ffd7106..beec3674 100644 --- a/lib/vfs/amigaffs.cc +++ b/lib/vfs/amigaffs.cc @@ -4,7 +4,7 @@ #include "lib/config.pb.h" #include "lib/proto.h" #include "lib/layout.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "adflib.h" #include "adf_blk.h" diff --git a/src/gui/main.cc b/src/gui/main.cc index eae09984..9c1e4a2c 100644 --- a/src/gui/main.cc +++ b/src/gui/main.cc @@ -1,5 +1,5 @@ #include "lib/core/globals.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "gui.h" #include "lib/core/utils.h" diff --git a/src/gui/mainwindow.cc b/src/gui/mainwindow.cc index 15cab9c8..5c55c587 100644 --- a/src/gui/mainwindow.cc +++ b/src/gui/mainwindow.cc @@ -2,7 +2,7 @@ #include "lib/config.h" #include "lib/proto.h" #include "gui.h" -#include "lib/logger.h" +#include "lib/core/logger.h" #include "lib/readerwriter.h" #include "lib/fluxsource/fluxsource.h" #include "lib/fluxsink/fluxsink.h"