diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-12-05 12:38:38 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-08 17:14:48 +0100 |
commit | 44ff3a374f7429f95ee6ea8b331b0b3f98f043f0 (patch) | |
tree | ebdc3cca9538456ddc677b8893da034c567efdd9 /Userland | |
parent | 517742d6f92f4409fd97a371970abcc15909f38a (diff) | |
download | serenity-44ff3a374f7429f95ee6ea8b331b0b3f98f043f0.zip |
LibSQL: Mark SQLClient's constructor as public
Similar to WebContent, this is needed to construct the SQLClient
manually in Ladybird.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibSQL/SQLClient.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Userland/Libraries/LibSQL/SQLClient.h b/Userland/Libraries/LibSQL/SQLClient.h index b86da1d82b..3e1ceab937 100644 --- a/Userland/Libraries/LibSQL/SQLClient.h +++ b/Userland/Libraries/LibSQL/SQLClient.h @@ -18,6 +18,13 @@ class SQLClient : public IPC::ConnectionToServer<SQLClientEndpoint, SQLServerEndpoint> , public SQLClientEndpoint { IPC_CLIENT_CONNECTION(SQLClient, "/tmp/session/%sid/portal/sql"sv) + +public: + explicit SQLClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) + : IPC::ConnectionToServer<SQLClientEndpoint, SQLServerEndpoint>(*this, move(socket)) + { + } + virtual ~SQLClient() = default; Function<void(u64, u64, SQLErrorCode, DeprecatedString const&)> on_execution_error; @@ -26,11 +33,6 @@ class SQLClient Function<void(u64, u64, size_t)> on_results_exhausted; private: - SQLClient(NonnullOwnPtr<Core::Stream::LocalSocket> socket) - : IPC::ConnectionToServer<SQLClientEndpoint, SQLServerEndpoint>(*this, move(socket)) - { - } - virtual void execution_success(u64 statement_id, u64 execution_id, bool has_results, size_t created, size_t updated, size_t deleted) override; virtual void next_result(u64 statement_id, u64 execution_id, Vector<SQL::Value> const&) override; virtual void results_exhausted(u64 statement_id, u64 execution_id, size_t total_rows) override; |