core: rename mbgl namespace to mln (#4487)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
namespace jni {
|
||||
|
||||
inline std::u16string convertUTF8ToUTF16(const std::string& str) {
|
||||
return mbgl::util::convertUTF8ToUTF16(str);
|
||||
return mln::util::convertUTF8ToUTF16(str);
|
||||
}
|
||||
|
||||
inline std::string convertUTF16ToUTF8(const std::u16string& str) {
|
||||
return mbgl::util::convertUTF16ToUTF8(str);
|
||||
return mln::util::convertUTF16ToUTF8(str);
|
||||
}
|
||||
|
||||
} // namespace jni
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace gfx {
|
||||
|
||||
// Common headless backend interface, provides HeadlessBackend backend factory
|
||||
@@ -38,4 +38,4 @@ protected:
|
||||
};
|
||||
|
||||
} // namespace gfx
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class Renderer;
|
||||
class Map;
|
||||
@@ -75,4 +75,4 @@ private:
|
||||
std::shared_ptr<UpdateParameters> updateParameters;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace gl {
|
||||
|
||||
class HeadlessBackend final : public gl::RendererBackend, public gfx::HeadlessBackend {
|
||||
@@ -47,4 +47,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace gl
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
struct CameraOptions;
|
||||
class ClientOptions;
|
||||
@@ -62,8 +62,8 @@ public:
|
||||
void setRegion(const LatLngBounds&);
|
||||
LatLngBounds getRegion() const;
|
||||
|
||||
void setPadding(const mbgl::EdgeInsets&);
|
||||
mbgl::EdgeInsets getPadding() const;
|
||||
void setPadding(const mln::EdgeInsets&);
|
||||
mln::EdgeInsets getPadding() const;
|
||||
|
||||
void addAnnotationImage(std::unique_ptr<style::Image>);
|
||||
void addAnnotation(const Annotation&);
|
||||
@@ -83,4 +83,4 @@ private:
|
||||
std::unique_ptr<Impl> impl;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace mtl {
|
||||
|
||||
class HeadlessBackend final : public mtl::RendererBackend, public gfx::HeadlessBackend {
|
||||
@@ -33,4 +33,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace mtl
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class Mailbox;
|
||||
|
||||
@@ -28,4 +28,4 @@ private:
|
||||
std::shared_ptr<Mailbox> mailbox;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <mbgl/util/string.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
template <typename>
|
||||
class ActorRef;
|
||||
@@ -12,4 +12,4 @@ void requestLocalFile(const std::string& path,
|
||||
const ActorRef<FileSourceRequest>& req,
|
||||
const std::optional<std::pair<uint64_t, uint64_t>>& dataRange = std::nullopt);
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// THIS IS A GENERATED FILE; EDIT merge_sideloaded.sql INSTEAD
|
||||
// To regenerate, run `node platform/default/mbgl/storage/merge_sideloaded.js`
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
static constexpr const char* mergeSideloadedDatabaseSQL =
|
||||
"INSERT INTO regions\n"
|
||||
@@ -59,4 +59,4 @@ static constexpr const char* mergeSideloadedDatabaseSQL =
|
||||
" \n"
|
||||
"DROP TABLE region_mapping;\n";
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -4,7 +4,7 @@ fs.writeFileSync('platform/default/mbgl/storage/merge_sideloaded.hpp', `#pragma
|
||||
// THIS IS A GENERATED FILE; EDIT merge_sideloaded.sql INSTEAD
|
||||
// To regenerate, run \`node platform/default/mbgl/storage/merge_sideloaded.js\`
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
static constexpr const char* mergeSideloadedDatabaseSQL =
|
||||
${fs.readFileSync('platform/default/mbgl/storage/merge_sideloaded.sql', 'utf8')
|
||||
@@ -16,5 +16,5 @@ ${fs.readFileSync('platform/default/mbgl/storage/merge_sideloaded.sql', 'utf8')
|
||||
}
|
||||
;
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
`);
|
||||
|
||||
@@ -23,7 +23,7 @@ class Exception;
|
||||
} // namespace sqlite
|
||||
} // namespace mapbox
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class Response;
|
||||
class TileID;
|
||||
@@ -191,4 +191,4 @@ private:
|
||||
bool readOnly = false;
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <memory>
|
||||
#include <deque>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
class OfflineDatabase;
|
||||
class FileSource;
|
||||
@@ -69,4 +69,4 @@ private:
|
||||
void markPendingUsedResources();
|
||||
};
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// THIS IS A GENERATED FILE; EDIT offline_schema.sql INSTEAD
|
||||
// To regenerate, run `node platform/default/include/mbgl/storage/offline_schema.js`
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
static constexpr const char* offlineDatabaseSchema =
|
||||
"CREATE TABLE resources (\n"
|
||||
@@ -59,4 +59,4 @@ static constexpr const char* offlineDatabaseSchema =
|
||||
"CREATE INDEX region_tiles_tile_id\n"
|
||||
"ON region_tiles (tile_id);\n";
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -6,7 +6,7 @@ fs.writeFileSync('platform/default/include/mbgl/storage/offline_schema.hpp', `#p
|
||||
// THIS IS A GENERATED FILE; EDIT offline_schema.sql INSTEAD
|
||||
// To regenerate, run \`node platform/default/include/mbgl/storage/offline_schema.js\`
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
|
||||
static constexpr const char* offlineDatabaseSchema =
|
||||
${fs.readFileSync('platform/default/include/mbgl/storage/offline_schema.sql', 'utf8')
|
||||
@@ -18,5 +18,5 @@ ${fs.readFileSync('platform/default/include/mbgl/storage/offline_schema.sql', 'u
|
||||
}
|
||||
;
|
||||
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
`);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace platform {
|
||||
|
||||
// Non-locale-aware diacritic folding based on nunicode
|
||||
@@ -10,4 +10,4 @@ namespace platform {
|
||||
std::string unaccent(const std::string &string);
|
||||
|
||||
} // namespace platform
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <memory>
|
||||
#include <functional>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace vulkan {
|
||||
|
||||
class Texture2D;
|
||||
@@ -41,4 +41,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace vulkan
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "mbgl/gfx/offscreen_texture.hpp"
|
||||
#include <memory>
|
||||
|
||||
namespace mbgl {
|
||||
namespace mln {
|
||||
namespace webgpu {
|
||||
|
||||
class HeadlessBackend final : public webgpu::RendererBackend, public gfx::HeadlessBackend {
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
// Override WebGPU-specific methods
|
||||
void* getCurrentTextureView() override;
|
||||
void* getDepthStencilView() override;
|
||||
mbgl::Size getFramebufferSize() const override;
|
||||
mln::Size getFramebufferSize() const override;
|
||||
|
||||
private:
|
||||
void activate() override;
|
||||
@@ -42,4 +42,4 @@ private:
|
||||
};
|
||||
|
||||
} // namespace webgpu
|
||||
} // namespace mbgl
|
||||
} // namespace mln
|
||||
|
||||
Reference in New Issue
Block a user