Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:42:42

0001 //
0002 // Copyright (c) 2019-2023 Ruben Perez Hidalgo (rubenperez038 at gmail dot com)
0003 //
0004 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0005 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0006 //
0007 
0008 #ifndef BOOST_MYSQL_IMPL_NETWORK_ALGORITHMS_IPP
0009 #define BOOST_MYSQL_IMPL_NETWORK_ALGORITHMS_IPP
0010 
0011 #pragma once
0012 
0013 #include <boost/mysql/detail/network_algorithms.hpp>
0014 
0015 #include <boost/mysql/impl/internal/network_algorithms/close_connection.hpp>
0016 #include <boost/mysql/impl/internal/network_algorithms/close_statement.hpp>
0017 #include <boost/mysql/impl/internal/network_algorithms/connect.hpp>
0018 #include <boost/mysql/impl/internal/network_algorithms/execute.hpp>
0019 #include <boost/mysql/impl/internal/network_algorithms/handshake.hpp>
0020 #include <boost/mysql/impl/internal/network_algorithms/ping.hpp>
0021 #include <boost/mysql/impl/internal/network_algorithms/prepare_statement.hpp>
0022 #include <boost/mysql/impl/internal/network_algorithms/quit_connection.hpp>
0023 #include <boost/mysql/impl/internal/network_algorithms/read_resultset_head.hpp>
0024 #include <boost/mysql/impl/internal/network_algorithms/read_some_rows.hpp>
0025 #include <boost/mysql/impl/internal/network_algorithms/read_some_rows_dynamic.hpp>
0026 #include <boost/mysql/impl/internal/network_algorithms/reset_connection.hpp>
0027 #include <boost/mysql/impl/internal/network_algorithms/start_execution.hpp>
0028 
0029 void boost::mysql::detail::connect_erased(
0030     channel& chan,
0031     const void* endpoint,
0032     const handshake_params& params,
0033     error_code& err,
0034     diagnostics& diag
0035 )
0036 {
0037     connect_impl(chan, endpoint, params, err, diag);
0038 }
0039 
0040 void boost::mysql::detail::async_connect_erased(
0041     channel& chan,
0042     const void* endpoint,
0043     const handshake_params& params,
0044     diagnostics& diag,
0045     any_void_handler handler
0046 )
0047 {
0048     async_connect_impl(chan, endpoint, params, diag, std::move(handler));
0049 }
0050 
0051 void boost::mysql::detail::handshake_erased(
0052     channel& channel,
0053     const handshake_params& params,
0054     error_code& err,
0055     diagnostics& diag
0056 )
0057 {
0058     handshake_impl(channel, params, err, diag);
0059 }
0060 
0061 void boost::mysql::detail::async_handshake_erased(
0062     channel& chan,
0063     const handshake_params& params,
0064     diagnostics& diag,
0065     any_void_handler handler
0066 )
0067 {
0068     async_handshake_impl(chan, params, diag, std::move(handler));
0069 }
0070 
0071 void boost::mysql::detail::execute_erased(
0072     channel& channel,
0073     const any_execution_request& req,
0074     execution_processor& output,
0075     error_code& err,
0076     diagnostics& diag
0077 )
0078 {
0079     execute_impl(channel, req, output, err, diag);
0080 }
0081 
0082 void boost::mysql::detail::async_execute_erased(
0083     channel& chan,
0084     const any_execution_request& req,
0085     execution_processor& output,
0086     diagnostics& diag,
0087     any_void_handler handler
0088 )
0089 {
0090     async_execute_impl(chan, req, output, diag, std::move(handler));
0091 }
0092 
0093 void boost::mysql::detail::start_execution_erased(
0094     channel& channel,
0095     const any_execution_request& req,
0096     execution_processor& proc,
0097     error_code& err,
0098     diagnostics& diag
0099 )
0100 {
0101     start_execution_impl(channel, req, proc, err, diag);
0102 }
0103 
0104 void boost::mysql::detail::async_start_execution_erased(
0105     channel& channel,
0106     const any_execution_request& req,
0107     execution_processor& proc,
0108     diagnostics& diag,
0109     any_void_handler handler
0110 )
0111 {
0112     async_start_execution_impl(channel, req, proc, diag, std::move(handler));
0113 }
0114 
0115 boost::mysql::statement boost::mysql::detail::prepare_statement_erased(
0116     channel& chan,
0117     string_view stmt,
0118     error_code& err,
0119     diagnostics& diag
0120 )
0121 {
0122     return prepare_statement_impl(chan, stmt, err, diag);
0123 }
0124 
0125 void boost::mysql::detail::async_prepare_statement_erased(
0126     channel& chan,
0127     string_view stmt,
0128     diagnostics& diag,
0129     any_handler<statement> handler
0130 )
0131 {
0132     async_prepare_statement_impl(chan, stmt, diag, std::move(handler));
0133 }
0134 
0135 void boost::mysql::detail::close_statement_erased(
0136     channel& chan,
0137     const statement& stmt,
0138     error_code& err,
0139     diagnostics& diag
0140 )
0141 {
0142     close_statement_impl(chan, stmt, err, diag);
0143 }
0144 
0145 void boost::mysql::detail::async_close_statement_erased(
0146     channel& chan,
0147     const statement& stmt,
0148     diagnostics& diag,
0149     any_void_handler handler
0150 )
0151 {
0152     async_close_statement_impl(chan, stmt, diag, std::move(handler));
0153 }
0154 
0155 boost::mysql::rows_view boost::mysql::detail::read_some_rows_dynamic_erased(
0156     channel& chan,
0157     execution_state_impl& st,
0158     error_code& err,
0159     diagnostics& diag
0160 )
0161 {
0162     return read_some_rows_dynamic_impl(chan, st, err, diag);
0163 }
0164 
0165 void boost::mysql::detail::async_read_some_rows_dynamic_erased(
0166     channel& chan,
0167     execution_state_impl& st,
0168     diagnostics& diag,
0169     any_handler<rows_view> handler
0170 )
0171 {
0172     async_read_some_rows_dynamic_impl(chan, st, diag, std::move(handler));
0173 }
0174 
0175 std::size_t boost::mysql::detail::read_some_rows_static_erased(
0176     channel& chan,
0177     execution_processor& proc,
0178     const output_ref& output,
0179     error_code& err,
0180     diagnostics& diag
0181 )
0182 {
0183     return read_some_rows_impl(chan, proc, output, err, diag);
0184 }
0185 
0186 void boost::mysql::detail::async_read_some_rows_erased(
0187     channel& chan,
0188     execution_processor& proc,
0189     const output_ref& output,
0190     diagnostics& diag,
0191     any_handler<std::size_t> handler
0192 )
0193 {
0194     async_read_some_rows_impl(chan, proc, output, diag, std::move(handler));
0195 }
0196 
0197 void boost::mysql::detail::read_resultset_head_erased(
0198     channel& channel,
0199     execution_processor& proc,
0200     error_code& err,
0201     diagnostics& diag
0202 )
0203 {
0204     read_resultset_head_impl(channel, proc, err, diag);
0205 }
0206 
0207 void boost::mysql::detail::async_read_resultset_head_erased(
0208     channel& chan,
0209     execution_processor& proc,
0210     diagnostics& diag,
0211     any_void_handler handler
0212 )
0213 {
0214     async_read_resultset_head_impl(chan, proc, diag, std::move(handler));
0215 }
0216 
0217 void boost::mysql::detail::ping_erased(channel& chan, error_code& code, diagnostics& diag)
0218 {
0219     ping_impl(chan, code, diag);
0220 }
0221 
0222 void boost::mysql::detail::async_ping_erased(channel& chan, diagnostics& diag, any_void_handler handler)
0223 {
0224     async_ping_impl(chan, diag, std::move(handler));
0225 }
0226 
0227 void boost::mysql::detail::reset_connection_erased(channel& chan, error_code& code, diagnostics& diag)
0228 {
0229     reset_connection_impl(chan, code, diag);
0230 }
0231 
0232 void boost::mysql::detail::async_reset_connection_erased(
0233     channel& chan,
0234     diagnostics& diag,
0235     any_void_handler handler
0236 )
0237 {
0238     async_reset_connection_impl(chan, diag, std::move(handler));
0239 }
0240 
0241 void boost::mysql::detail::close_connection_erased(channel& chan, error_code& code, diagnostics& diag)
0242 {
0243     close_connection_impl(chan, code, diag);
0244 }
0245 
0246 void boost::mysql::detail::async_close_connection_erased(
0247     channel& chan,
0248     diagnostics& diag,
0249     any_void_handler handler
0250 )
0251 {
0252     async_close_connection_impl(chan, diag, std::move(handler));
0253 }
0254 
0255 void boost::mysql::detail::quit_connection_erased(channel& chan, error_code& err, diagnostics& diag)
0256 {
0257     quit_connection_impl(chan, err, diag);
0258 }
0259 
0260 void boost::mysql::detail::async_quit_connection_erased(
0261     channel& chan,
0262     diagnostics& diag,
0263     any_void_handler handler
0264 )
0265 {
0266     async_quit_connection_impl(chan, diag, std::move(handler));
0267 }
0268 
0269 #endif