Molybden API
Loading...
Searching...
No Matches
callback.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_RPC_CALLBACK_HPP
6#define MOLYBDEN_RPC_CALLBACK_HPP
7
8namespace google {
9namespace protobuf {
10class Message;
11}
12} // namespace google
13
14namespace rpc {
15namespace internal {
16
17class Callback {
18 public:
19 virtual ~Callback() = default;
20
21 virtual void send(google::protobuf::Message* message) = 0;
22
23 virtual void fail() = 0;
24};
25} // namespace internal
26} // namespace rpc
27#endif // MOLYBDEN_RPC_CALLBACK_HPP